aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-07-05 22:07:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-07-05 22:07:34 +0000
commitc3a826fdcef1e64d9fe66877eb36c1649c4b886b (patch)
tree5b2848fea683553d435aaddffee4841a3844ab1b /lib
parentc5d6a42abf81e1c5d889b3724a746366a99a6cd6 (diff)
correction for the 407 with response-body case
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index 9d9bb3e42..f46c1585a 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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++) {