append a CRLF pair after the content-type line
diff --git a/lib/http.c b/lib/http.c
index 1113e38..9ceeb0f 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -853,6 +853,9 @@
           return CURLE_HTTP_POST_ERROR;
         }
         add_buffer(req_buffer, contentType, linelength);
+
+        /* make the request end in a true CRLF */
+        add_buffer(req_buffer, "\r\n", 2);
       }
 
       /* set upload size to the progress meter */