Check-in [b9eec2d277]
Not logged in
Overview

SHA1 Hash:b9eec2d2772ec5aba73845c9bcd921211ade0856
Date: 2008-05-17 19:24:52
User: drh
Comment:Fix a bug in the new win32 server implementation.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/winhttp.c from [b85fb3a4bb] to [572742e69b].

@@ -97,11 +97,11 @@
   }
   if( amt>=sizeof(zHdr) ) goto end_request;
   out = fopen(zRequestFName, "wb");
   if( out==0 ) goto end_request;
   fwrite(zHdr, 1, amt, out);
-  while( wanted ){
+  while( wanted>0 ){
     got = recv(p->s, zHdr, sizeof(zHdr), 0);
     if( got==SOCKET_ERROR ) goto end_request;
     if( got ){
       fwrite(zHdr, 1, got, out);
     }else{