mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:43:32 +03:00
transfer: cleanup done+excess handling
- add `SingleRequest->download_done` as indicator that all download bytes have been received - remove `stop_reading` bool from readwrite functions - move excess body handling into client download writer Closes #12371
This commit is contained in:
parent
03cb1ff4d6
commit
5b65e7d1ae
7 changed files with 121 additions and 128 deletions
|
|
@ -882,6 +882,7 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
|
|||
may be parts of the request that is not yet sent, since we can deal with
|
||||
the rest of the request in the PERFORM phase. */
|
||||
*done = TRUE;
|
||||
Curl_client_cleanup(data);
|
||||
|
||||
infof(data, "Time for the Hyper dance");
|
||||
memset(h, 0, sizeof(struct hyptransfer));
|
||||
|
|
@ -892,6 +893,8 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
|
|||
|
||||
Curl_http_method(data, conn, &method, &httpreq);
|
||||
|
||||
DEBUGASSERT(data->req.bytecount == 0);
|
||||
|
||||
/* setup the authentication headers */
|
||||
{
|
||||
char *pq = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue