Updated SammiClient

Fixed indentation for getting Body of HTTP response.  Should be outside if statement.
This commit is contained in:
Mario Steele 2025-04-30 15:27:28 -05:00
parent 9315f7bce5
commit fee6e0faf8

View file

@ -125,13 +125,13 @@ func _read_response() -> void:
if headers.size() == 0:
return
var chunk := client.get_partial_data(1024)
if chunk[0] == OK and chunk[1].size() > 0:
buffer.append_array(chunk[1])
else:
response = SammiResponse.new(headers, buffer, query)
request_completed.emit(response)
state = State.CLOSED
var chunk := client.get_partial_data(1024)
if chunk[0] == OK and chunk[1].size() > 0:
buffer.append_array(chunk[1])
else:
response = SammiResponse.new(headers, buffer, query)
request_completed.emit(response)
state = State.CLOSED
class SammiResponse: