aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
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