summaryrefslogtreecommitdiff
path: root/scene/main/http_request.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-27 22:25:08 +0100
committerGitHub <noreply@github.com>2021-02-27 22:25:08 +0100
commitaf5a67b8d8d2e6676c13e0f96997d14a7bb75910 (patch)
tree4190fb21319d97f403845a13c1c71aa22ef36c88 /scene/main/http_request.cpp
parent0e8fae1038cb27372777623b1af26e6f0cfb34fa (diff)
parentd61cd469f105d269d66c286bb1efd304a5abb0a5 (diff)
Merge pull request #46487 from Faless/net/4.x_http_request_eof
[Net] Better EOF handling in HTTPRequest.
Diffstat (limited to 'scene/main/http_request.cpp')
-rw-r--r--scene/main/http_request.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/http_request.cpp b/scene/main/http_request.cpp
index ce7d6ef13c..77bdf09426 100644
--- a/scene/main/http_request.cpp
+++ b/scene/main/http_request.cpp
@@ -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;