|
@@ -387,6 +387,9 @@ bool HTTPRequest::_update_connection() {
|
|
}
|
|
}
|
|
|
|
|
|
client->poll();
|
|
client->poll();
|
|
|
|
+ if (client->get_status() != HTTPClient::STATUS_BODY) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
|
|
PackedByteArray chunk = client->read_response_body_chunk();
|
|
PackedByteArray chunk = client->read_response_body_chunk();
|
|
downloaded.add(chunk.size());
|
|
downloaded.add(chunk.size());
|