summaryrefslogtreecommitdiff
path: root/lib/http_proxy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-08 16:17:12 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-08 16:23:58 +0100
commit220abe75795d48a6f7903fd6f6853e503c2e47a4 (patch)
treeb6f301f2d80b1afa4467b403da6fd14140812790 /lib/http_proxy.c
parent060658f634f7d599ab163eb3bfedfb8b8e23f6e2 (diff)
downloadcurl-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.c6
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);