summaryrefslogtreecommitdiff
path: root/scene/main/http_request.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-22 12:00:34 +0200
committerGitHub <noreply@github.com>2019-04-22 12:00:34 +0200
commita342131eba2834240289112a1b8d5d0c68a265c9 (patch)
treec412df9c24c8b568086ea6ff72a097fb8d20dbc0 /scene/main/http_request.cpp
parent1e67f214c520b2c1a9fed30f78440c4e1d4d14dd (diff)
parent856a8226a5306632f5dd4d9e9c916d89e3e21495 (diff)
Merge pull request #27673 from qarmin/small_fixes
Small fixes, mostly duplicated code
Diffstat (limited to 'scene/main/http_request.cpp')
-rw-r--r--scene/main/http_request.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/http_request.cpp b/scene/main/http_request.cpp
index 8b68b3215c..e65314644e 100644
--- a/scene/main/http_request.cpp
+++ b/scene/main/http_request.cpp
@@ -286,7 +286,7 @@ bool HTTPRequest::_update_connection() {
call_deferred("_request_done", RESULT_SUCCESS, response_code, response_headers, PoolByteArray());
return true;
}
- if (got_response && body_len < 0) {
+ if (body_len < 0) {
// Chunked transfer is done
call_deferred("_request_done", RESULT_SUCCESS, response_code, response_headers, body);
return true;