aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index 19473d3f1..3aa5af34a 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1487,7 +1487,7 @@ CURLcode Curl_http(struct connectdata *conn)
if(!conn->bits.upload_chunky)
/* only add Content-Length if not uploading chunked */
add_bufferf(req_buffer,
- "Content-Length: %d\r\n", http->postsize);
+ "Content-Length: %" FORMAT_OFF_T "\r\n", http->postsize);
if(!checkheaders(data, "Expect:")) {
/* if not disabled explicitly we add a Expect: 100-continue