logo       

bagder: curl/lib http.c,1.273,1.274: msg#00008

web.curl.cvs

Subject: bagder: curl/lib http.c,1.273,1.274

Update of /cvsroot/curl/curl/lib
In directory labb:/tmp/cvs-serv24144

Modified Files:
http.c
Log Message:
correction for the 407 with response-body case


Index: http.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/http.c,v
retrieving revision 1.273
retrieving revision 1.274
diff -u -d -r1.273 -r1.274
--- http.c 3 Jul 2005 22:25:15 -0000 1.273
+++ http.c 5 Jul 2005 22:07:34 -0000 1.274
@@ -1218,9 +1218,14 @@
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++) {

_______________________________________________
http://cool.haxx.se/mailman/listinfo/curl-commits



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise