diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-10-22 10:57:54 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-10-22 12:54:12 +0200 |
commit | 10883eb98156077a7cb2d86656df54008558f653 (patch) | |
tree | 952ade4f7e9edb9799c9e8e614791b0a714f7f31 /lib/c-hyper.c | |
parent | 1732502cb0bd255fb65ae351f61888d8f4f04ed6 (diff) | |
download | curl-10883eb98156077a7cb2d86656df54008558f653.tar.gz |
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
Diffstat (limited to 'lib/c-hyper.c')
-rw-r--r-- | lib/c-hyper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 38071e832..c691544b7 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -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; } |