summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-03-15 00:27:20 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-03-15 00:29:02 +0100
commit458697c4daf274e0d2ddc6ba69a32e7bac43fb26 (patch)
treeb2c7e1e824d85b720b7cb950243b0a62115d634a /lib
parenta857057536df6e55cb8eec0f894c192fe594272d (diff)
downloadcurl-bagder/http-no-headers-wrong-size.tar.gz
transfer: make HTTP without headers count correct body sizebagder/http-no-headers-wrong-size
This is what "HTTP/0.9" basically looks like.
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index fd9af3155..b5614f55f 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -717,7 +717,7 @@ static CURLcode readwrite_data(struct Curl_easy *data,
#endif /* CURL_DISABLE_HTTP */
/* Account for body content stored in the header buffer */
- if(k->badheader && !k->ignorebody) {
+ if((k->badheader == HEADER_PARTHEADER) && !k->ignorebody) {
DEBUGF(infof(data, "Increasing bytecount by %zu from hbuflen\n",
k->hbuflen));
k->bytecount += k->hbuflen;