From c40b4f6c3977497bc4b2d248554f13ea82354b76 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 7 Feb 2002 09:32:40 +0000 Subject: don't add 2 to the post size, that was a previous mistake because there was an extra CRLF added to the post data --- lib/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3