diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-01-08 16:17:12 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-01-08 16:23:58 +0100 |
commit | 220abe75795d48a6f7903fd6f6853e503c2e47a4 (patch) | |
tree | b6f301f2d80b1afa4467b403da6fd14140812790 /lib/http_proxy.c | |
parent | 060658f634f7d599ab163eb3bfedfb8b8e23f6e2 (diff) | |
download | curl-bagder/hyper-authneg.tar.gz |
http: make 'authneg' also work for Hyperbagder/hyper-authneg
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.
Diffstat (limited to 'lib/http_proxy.c')
-rw-r--r-- | lib/http_proxy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c index b7827860c..43bbe73d5 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -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); |