diff --git a/core/io/http_client.cpp b/core/io/http_client.cpp index 0c96d786f65..581362b51a0 100644 --- a/core/io/http_client.cpp +++ b/core/io/http_client.cpp @@ -662,6 +662,7 @@ PoolByteArray HTTPClient::read_response_body_chunk() { } } if (err != OK) { + ret.resize(_offset); break; } }