aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-08-10 13:57:50 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-08-11 14:00:59 +0200
commit2a278fd73573d025e6d5ebde8b10d446c27d6d3f (patch)
tree19059ae179e76a0ce86d45cf8c4a4194e7a33200 /lib
parent53d211bfd1b209f62ded7e67045d584804c2309d (diff)
CURLINFO_SIZE_UPLOAD: fix missing counter update
Adds test 1522 for verification. Reported-by: cjmsoregan Fixes #2847 Closes #2864
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c
index bc1f85850..01ccd4ade 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -2887,6 +2887,8 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
data->req.exp100 = EXP100_SEND_DATA; /* already sent */
Curl_expire_done(data, EXPIRE_100_TIMEOUT);
}
+ else
+ data->req.writebytecount = http->writebytecount;
}
if((conn->httpversion == 20) && data->req.upload_chunky)