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:
Daniel Stenberg 2021-01-08 16:17:12 +01:00
parent 83f1ca6929
commit 8b2dec6ab7
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 25 additions and 21 deletions

View file

@ -670,7 +670,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
if(!pq)
return CURLE_OUT_OF_MEMORY;
}
result = Curl_http_output_auth(conn, method,
result = Curl_http_output_auth(conn, method, httpreq,
(pq ? pq : data->state.up.path), FALSE);
free(pq);
if(result)