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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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