summaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-15 16:53:04 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-17 14:00:27 +0100
commita5bc272223681e1473f260ab9580b50753f25b7b (patch)
tree4ee76757e6e51c8fd4c19c7556fa45d6b3d68317 /lib/urldata.h
parent3e17c8ab72e66bdd2faef5561de5030c519e3359 (diff)
downloadcurl-a5bc272223681e1473f260ab9580b50753f25b7b.tar.gz
http: show the request as headers even when split-sending
When the initial request isn't possible to send in its entirety, the remainder of request would be delivered to the debug callback as data and would wrongly be counted internally as body-bytes sent. Extended test 1295 to verify. Closes #6328
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 4679c9d46..296341ebd 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -604,6 +604,8 @@ struct SingleRequest {
following second response code) result in a
CURLE_GOT_NOTHING error code */
+ curl_off_t pendingheader; /* this many bytes left to send is actually
+ header and not body */
struct curltime start; /* transfer started at this time */
struct curltime now; /* current time */
enum {