diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-04-07 18:16:01 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-04-08 08:14:23 +0200 |
commit | 0ef54abf52086e48e7c751747650584d51b9ebaa (patch) | |
tree | dff9d2e74f60d84658306727c091f876246baa52 /lib/http.c | |
parent | 3e376059bbc6e5e56013c383f3ae3eef6c3ae8bb (diff) | |
download | curl-0ef54abf52086e48e7c751747650584d51b9ebaa.tar.gz |
http: don't consider upload done if the request isn't completely sent off
Fixes #4919
Closes #5197
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c index e53f0d482..5a2edf09e 100644 --- a/lib/http.c +++ b/lib/http.c @@ -3057,7 +3057,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) } if(result) return result; - if(!postsize) + if(!postsize && (http->sending != HTTPSEND_REQUEST)) data->req.upload_done = TRUE; if(data->req.writebytecount) { |