]> granicus.if.org Git - curl/commit
http: set state.infilesize when sending formposts
authorDaniel Stenberg <daniel@haxx.se>
Wed, 27 Feb 2019 21:30:32 +0000 (22:30 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 28 Feb 2019 14:24:03 +0000 (15:24 +0100)
commitf1d915ea494427ce6670f1a12fbcf0b811ae6a97
treef6f6a12b66f85f87c0727ea2e55b2c7a4846c433
parentb4755887b9629552f0adf076ef35126b9dcf24ef
http: set state.infilesize when sending formposts

Without it set, we would unwillingly triger the "HTTP error before end
of send, stop sending" condition even if the entire POST body had been
sent (since it wouldn't know the expected size) which would
unnecessarily log that message and close the connection when it didn't
have to.

Reported-by: Matt McClure
Bug: https://curl.haxx.se/mail/archive-2019-02/0023.html
Closes #3624
lib/http.c