mirror of
https://github.com/curl/curl.git
synced 2026-06-05 20:54:15 +03:00
CURLINFO_REQUEST_SIZE: fixed, add tests for transfer infos reported
- tests for 'size_request' and other stats reported, for presence and consistency Reported-by: Jonatan Vela Fixes #13269 Closes #13275
This commit is contained in:
parent
0a4419ae4c
commit
8482ce53dd
3 changed files with 166 additions and 0 deletions
|
|
@ -1236,6 +1236,9 @@ CURLcode Curl_xfer_send(struct Curl_easy *data,
|
|||
result = CURLE_OK;
|
||||
*pnwritten = 0;
|
||||
}
|
||||
else if(!result && *pnwritten)
|
||||
data->info.request_size += *pnwritten;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue