Update scene/main/http_request.cpp
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
parent
70c39737db
commit
bc8fe786b2
@ -349,8 +349,9 @@ bool HTTPRequest::_update_connection() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
client->poll();
|
client->poll();
|
||||||
if (client->get_status() != HTTPClient::STATUS_BODY)
|
if (client->get_status() != HTTPClient::STATUS_BODY) {
|
||||||
break; // State changed after this poll, will check at next iteration.
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
PoolByteArray chunk = client->read_response_body_chunk();
|
PoolByteArray chunk = client->read_response_body_chunk();
|
||||||
downloaded += chunk.size();
|
downloaded += chunk.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user