CURLINFO_SIZE_UPLOAD: fix missing counter update

Adds test 1522 for verification.

Reported-by: cjmsoregan
Fixes #2847
Closes #2864
This commit is contained in:
Daniel Stenberg 2018-08-10 13:57:50 +02:00
parent 53d211bfd1
commit 2a278fd735
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 147 additions and 2 deletions

View file

@ -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)