the postsize is an off_t so use the proper printf format to output the

content-length when doing multipart posts
This commit is contained in:
Daniel Stenberg 2004-03-13 17:03:17 +00:00
parent 94a1d09ac7
commit 24cfa7f1bb
1 changed files with 1 additions and 1 deletions

View File

@ -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