mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
c-hyper: don't abort CONNECT responses early when auth-in-progress
... and make sure to stop ignoring the body once the CONNECT is done. This should make test 206 work proper again and not be flaky. Closes #7889
This commit is contained in:
parent
1732502cb0
commit
10883eb981
@ -205,7 +205,8 @@ static int hyper_body_chunk(void *userdata, const hyper_buf *chunk)
|
||||
k->exp100 = EXP100_FAILED;
|
||||
}
|
||||
}
|
||||
if(data->state.hconnect && (data->req.httpcode/100 != 2)) {
|
||||
if(data->state.hconnect && (data->req.httpcode/100 != 2) &&
|
||||
data->state.authproxy.done) {
|
||||
done = TRUE;
|
||||
result = CURLE_OK;
|
||||
}
|
||||
|
@ -212,6 +212,7 @@ static void connect_done(struct Curl_easy *data)
|
||||
s->prot_save = NULL;
|
||||
data->info.httpcode = 0; /* clear it as it might've been used for the
|
||||
proxy */
|
||||
data->req.ignorebody = FALSE;
|
||||
infof(data, "CONNECT phase completed!");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user