]> granicus.if.org Git - curl/commit
transfer: init the infilesize from the postfields...
authorDaniel Stenberg <daniel@haxx.se>
Mon, 29 May 2017 22:45:54 +0000 (00:45 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 30 May 2017 09:39:42 +0000 (11:39 +0200)
commite54db1b053614ce5d332b5eea673ab370843e65b
tree2e5a0291ee958309a64cd5586263f7cac9eecc34
parent35682764a9dc7eb0fed3fbb1c0074f1c34dd60b2
transfer: init the infilesize from the postfields...

... with a strlen() if no size was set, and do this in the pretransfer
function so that the info is set early. Otherwise, the default strlen()
done on the POSTFIELDS data never sets state.infilesize.

Reported-by: Vincas Razma
Bug: #1294
lib/http.c
lib/transfer.c