summaryrefslogtreecommitdiff
path: root/lib/http_proxy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-10-21 19:44:29 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-10-22 12:54:00 +0200
commitcf088201a974f0cf7afd03f0dc4fe27b6c8c2b31 (patch)
tree7d3a7e177a15f9e19ebc67d4652ddb2606c604b8 /lib/http_proxy.c
parenta76f3c592b682d8e30779f7379883453871cfdf9 (diff)
downloadcurl-cf088201a974f0cf7afd03f0dc4fe27b6c8c2b31.tar.gz
c-hyper: make test 217 run
Closes #7889
Diffstat (limited to 'lib/http_proxy.c')
-rw-r--r--lib/http_proxy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index 8fc9c6222..2969c859d 100644
--- a/lib/http_proxy.c
+++ b/lib/http_proxy.c
@@ -210,6 +210,8 @@ static void connect_done(struct Curl_easy *data)
/* restore the protocol pointer */
data->req.p.http = s->prot_save;
s->prot_save = NULL;
+ data->info.httpcode = 0; /* clear it as it might've been used for the
+ proxy */
infof(data, "CONNECT phase completed!");
}
}
@@ -964,7 +966,6 @@ static CURLcode CONNECT(struct Curl_easy *data,
result = CURLE_OK;
if(s->tunnel_state == TUNNEL_COMPLETE) {
- data->info.httpproxycode = data->req.httpcode;
if(data->info.httpproxycode/100 != 2) {
if(conn->bits.close && data->req.newurl) {
conn->bits.proxy_connect_closed = TRUE;