From: Daniel Stenberg <daniel@haxx.se> Date: Thu, 7 Feb 2002 09:32:40 +0000 (+0000) Subject: don't add 2 to the post size, that was a previous mistake because there X-Git-Tag: curl-7_9_5-pre2~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c40b4f6c3977497bc4b2d248554f13ea82354b76;p=curl don't add 2 to the post size, that was a previous mistake because there was an extra CRLF added to the post data --- diff --git a/lib/http.c b/lib/http.c index 9ceeb0fbf..07a202b96 100644 --- a/lib/http.c +++ b/lib/http.c @@ -831,7 +831,7 @@ CURLcode Curl_http(struct connectdata *conn) data->set.in = (FILE *)&http->form; add_bufferf(req_buffer, - "Content-Length: %d\r\n", http->postsize-2); + "Content-Length: %d\r\n", http->postsize); if(!checkheaders(data, "Expect:")) { /* if not disabled explicitly we add a Expect: 100-continue