mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
[Net] Better EOF handling in HTTPRequest.
This fix request_completed being emitted two times, the first with the result, the second as a failure when retrieving responses served with read-until-EOF.
This commit is contained in:
parent
0e8fae1038
commit
d61cd469f1
1 changed files with 1 additions and 0 deletions
|
|
@ -415,6 +415,7 @@ bool HTTPRequest::_update_connection() {
|
|||
} else if (client->get_status() == HTTPClient::STATUS_DISCONNECTED) {
|
||||
// We read till EOF, with no errors. Request is done.
|
||||
call_deferred("_request_done", RESULT_SUCCESS, response_code, response_headers, body);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue