c-hyper: make test 217 run

Closes #7889
This commit is contained in:
Daniel Stenberg 2021-10-21 19:44:29 +02:00
parent a76f3c592b
commit cf088201a9
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 8 additions and 2 deletions

View file

@ -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;