Index: nio-http.cc =================================================================== RCS file: /cvs/src/src/winsup/cinstall/nio-http.cc,v retrieving revision 2.7 diff -p -u -b -r2.7 nio-http.cc --- nio-http.cc 2001/11/13 01:49:32 2.7 +++ nio-http.cc 2001/11/27 05:31:36 @@ -180,7 +180,9 @@ retry_get: s = 0; return; } - while ((l = s->gets ()) != 0) + + // Eat the header, picking out the Content-Length in the process + while (((l = s->gets ()) != 0) && (strlen(l) != 0)) { if (_strnicmp (l, "Content-Length:", 15) == 0) sscanf (l, "%*s %d", &file_size);