don't add 2 to the post size, that was a previous mistake because there
authorDaniel Stenberg <daniel@haxx.se>
Thu, 7 Feb 2002 09:32:40 +0000 (09:32 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Feb 2002 09:32:40 +0000 (09:32 +0000)
was an extra CRLF added to the post data

lib/http.c

index 9ceeb0f..07a202b 100644 (file)
@@ -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