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:
Stefan Eissing 2024-04-04 11:06:06 +02:00 committed by Daniel Stenberg
parent 0a4419ae4c
commit 8482ce53dd
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 166 additions and 0 deletions

View file

@ -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;
}