Skip to content
Snippets Groups Projects
Commit 24cfa7f1 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

content-length when doing multipart posts
parent 94a1d09a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment