mirror of
https://github.com/curl/curl.git
synced 2026-08-07 02:58:50 +03:00
http: make 'authneg' also work for Hyper
When doing a request with a request body expecting a 401/407 back, that initial request is sent with a zero content-length. Test 177 and more. Closes #6424
This commit is contained in:
parent
83f1ca6929
commit
8b2dec6ab7
5 changed files with 25 additions and 21 deletions
|
|
@ -263,7 +263,8 @@ static CURLcode CONNECT(struct connectdata *conn,
|
|||
return result;
|
||||
|
||||
/* Setup the proxy-authorization header, if any */
|
||||
result = Curl_http_output_auth(conn, "CONNECT", hostheader, TRUE);
|
||||
result = Curl_http_output_auth(conn, "CONNECT", HTTPREQ_GET,
|
||||
hostheader, TRUE);
|
||||
|
||||
if(!result) {
|
||||
const char *proxyconn = "";
|
||||
|
|
@ -739,7 +740,8 @@ static CURLcode CONNECT(struct connectdata *conn,
|
|||
result = CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
/* Setup the proxy-authorization header, if any */
|
||||
result = Curl_http_output_auth(conn, "CONNECT", hostheader, TRUE);
|
||||
result = Curl_http_output_auth(conn, "CONNECT", HTTPREQ_GET,
|
||||
hostheader, TRUE);
|
||||
if(result)
|
||||
goto error;
|
||||
Curl_safefree(hostheader);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue