Index: httpd.c
===================================================================
RCS file: /cvsroot/ethernut/nut/pro/httpd.c,v
retrieving revision 1.6
diff -u -r1.6 httpd.c
--- httpd.c	16 Dec 2004 10:17:18 -0000	1.6
+++ httpd.c	7 Mar 2005 10:14:43 -0000
@@ -649,9 +649,12 @@
                     break;
                 strcpy(req->req_auth, cp);
             }
-        } else if (strncasecmp(line, "Content-Length:", 15) == 0)
-            req->req_length = 0 /*atoi(&line[15]) */ ;
-        else if (strncasecmp(line, "Content-Type:", 13) == 0) {
+        } else if (strncasecmp(line, "Content-Length:", 15) == 0) {
+            cp = &line[15];
+            while (*cp == ' ' || *cp == '\t')
+                cp++;
+            req->req_length = atoi(cp);
+        } else if (strncasecmp(line, "Content-Type:", 13) == 0) {
             if (req->req_type == 0) {
                 cp = &line[13];
                 while (*cp == ' ' || *cp == '\t')
