diff --git a/src/ChangeLog b/src/ChangeLog index c88bd5e1..4cd4fa33 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-12-16 Hrvoje Niksic + + * http.c (gethttp): Fix generation of `Content-Length'. + 2003-12-15 Gisle Vanem * url.c (url_skip_credentials): Fixed return value; 'url' if no diff --git a/src/http.c b/src/http.c index 40a2fceb..5159d902 100644 --- a/src/http.c +++ b/src/http.c @@ -1253,8 +1253,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy) } } 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. */