Skip to content
Snippets Groups Projects
Commit c3a826fd authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

correction for the 407 with response-body case

parent c5d6a42a
No related branches found
No related tags found
No related merge requests found
......@@ -1218,9 +1218,14 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
nread += gotbytes;
if(keepon > TRUE) {
/* This means we are currently ignoring a response-body, so we
simply count down our counter and make sure to break out of the
loop when we're done! */
cl -= gotbytes;
if(!cl)
if(cl<=0) {
keepon = FALSE;
break;
}
}
else
for(i = 0; i < gotbytes; ptr++, i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment