[svn] Fix generation of `Content-Length'.

This commit is contained in:
hniksic 2003-12-16 12:42:06 -08:00
parent 2e2c816057
commit 4bbe443be3
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-12-16 Hrvoje Niksic <hniksic@xemacs.org>
* http.c (gethttp): Fix generation of `Content-Length'.
2003-12-15 Gisle Vanem <giva@bgnett.no>
* url.c (url_skip_credentials): Fixed return value; 'url' if no

View File

@ -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. */