1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

correction for the 407 with response-body case

This commit is contained in:
Daniel Stenberg 2005-07-05 22:07:34 +00:00
parent c5d6a42abf
commit c3a826fdce

View File

@ -1218,10 +1218,15 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
nread += gotbytes; nread += gotbytes;
if(keepon > TRUE) { 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; cl -= gotbytes;
if(!cl) if(cl<=0) {
keepon = FALSE;
break; break;
} }
}
else else
for(i = 0; i < gotbytes; ptr++, i++) { for(i = 0; i < gotbytes; ptr++, i++) {
perline++; /* amount of bytes in this line so far */ perline++; /* amount of bytes in this line so far */