Herold Heiko <[EMAIL PROTECTED]> writes:

> Content-Length: Content-Length: 35
[...]
> The line
> Content-Length: Content-Length: 35
> certainly seems strange.

Yup, that's where the bug is.  This should fix it:

2003-12-16  Hrvoje Niksic  <[EMAIL PROTECTED]>

        * http.c (gethttp): Fix generation of `Content-Length'.

Index: src/http.c
===================================================================
RCS file: /pack/anoncvs/wget/src/http.c,v
retrieving revision 1.137
diff -u -r1.137 http.c
--- src/http.c  2003/12/12 22:55:19     1.137
+++ src/http.c  2003/12/16 20:39:30
@@ -1253,8 +1253,7 @@
            }
        }
       request_set_header (req, "Content-Length",
-                         aprintf ("Content-Length: %ld", post_data_size),
-                         rel_value);
+                         aprintf ("%ld", post_data_size), rel_value);
     }
 
   /* Add the user headers. */

Reply via email to