mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
http: revisit http_perhapsrewind()
- use facilities provided by client readers better - work also for non-uploading requests like GET/HEAD - update documentation Closes #13117
This commit is contained in:
parent
6ea75877fa
commit
77b0571cdc
3 changed files with 73 additions and 96 deletions
|
|
@ -237,6 +237,8 @@ static CURLcode start_CONNECT(struct Curl_cfilter *cf,
|
|||
http_minor = (cf->conn->http_proxy.proxytype == CURLPROXY_HTTP_1_0) ? 0 : 1;
|
||||
|
||||
result = Curl_h1_req_write_head(req, http_minor, &ts->request_data);
|
||||
if(!result)
|
||||
result = Curl_creader_set_null(data);
|
||||
|
||||
out:
|
||||
if(result)
|
||||
|
|
@ -749,6 +751,10 @@ static CURLcode start_CONNECT(struct Curl_cfilter *cf,
|
|||
if(result)
|
||||
goto error;
|
||||
|
||||
result = Curl_creader_set_null(data);
|
||||
if(result)
|
||||
goto error;
|
||||
|
||||
sendtask = hyper_clientconn_send(client, req);
|
||||
if(!sendtask) {
|
||||
failf(data, "hyper_clientconn_send");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue