... 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
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;
}
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!");
}
}