summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorLeon Krause <lk@leonkrause.com>2018-02-17 17:49:17 +0100
committerLeon Krause <lk@leonkrause.com>2018-02-17 18:13:05 +0100
commit98039909f202aac2795ead44104b56f7609059d8 (patch)
tree64b03d7231c1639cd30463dbdd96861ff952b7c6 /platform
parentca9fa9cca8a27f14a7b0178d6abf573815722996 (diff)
Flush HTTPClient response data only on request/close in HTML5 platform
Diffstat (limited to 'platform')
-rw-r--r--platform/javascript/http_client_javascript.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/platform/javascript/http_client_javascript.cpp b/platform/javascript/http_client_javascript.cpp
index 939a8d11f2..118a77835e 100644
--- a/platform/javascript/http_client_javascript.cpp
+++ b/platform/javascript/http_client_javascript.cpp
@@ -193,8 +193,6 @@ PoolByteArray HTTPClient::read_response_body_chunk() {
if (response_read_offset == polled_response.size()) {
status = STATUS_CONNECTED;
polled_response.resize(0);
- polled_response_code = 0;
- polled_response_header = String();
godot_xhr_reset(xhr_id);
}