summaryrefslogtreecommitdiff
path: root/lib/http_proxy.c
diff options
context:
space:
mode:
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);