Merge pull request #46487 from Faless/net/4.x_http_request_eof
[Net] Better EOF handling in HTTPRequest.
This commit is contained in:
commit
af5a67b8d8
1 changed files with 1 additions and 0 deletions
|
@ -415,6 +415,7 @@ bool HTTPRequest::_update_connection() {
|
||||||
} else if (client->get_status() == HTTPClient::STATUS_DISCONNECTED) {
|
} else if (client->get_status() == HTTPClient::STATUS_DISCONNECTED) {
|
||||||
// We read till EOF, with no errors. Request is done.
|
// We read till EOF, with no errors. Request is done.
|
||||||
call_deferred("_request_done", RESULT_SUCCESS, response_code, response_headers, body);
|
call_deferred("_request_done", RESULT_SUCCESS, response_code, response_headers, body);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue