summaryrefslogtreecommitdiffstats
path: root/scene/main/http_request.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-04-08 11:03:37 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-04-08 11:03:37 +0200
commit856a8226a5306632f5dd4d9e9c916d89e3e21495 (patch)
treef5ed5052dfc9d6793b78b2353ba84732676beb08 /scene/main/http_request.cpp
parentc2c11fc063e723c41579e6307e40fd16ac5334c4 (diff)
downloadredot-engine-856a8226a5306632f5dd4d9e9c916d89e3e21495.tar.gz
Small fixes, mostly dupicated 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;