From a423adbee6fa9baa11ceb7a2eaf04d6b0de11826 Mon Sep 17 00:00:00 2001 From: Leon Krause Date: Sat, 17 Feb 2018 17:49:17 +0100 Subject: [PATCH] Flush HTTPClient response data only on request/close in HTML5 platform (cherry picked from commit 98039909f202aac2795ead44104b56f7609059d8) --- platform/javascript/http_client_javascript.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/platform/javascript/http_client_javascript.cpp b/platform/javascript/http_client_javascript.cpp index 939a8d11f25..118a77835e2 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); }