diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-03-15 00:27:20 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-03-15 00:29:02 +0100 |
commit | 458697c4daf274e0d2ddc6ba69a32e7bac43fb26 (patch) | |
tree | b2c7e1e824d85b720b7cb950243b0a62115d634a /lib | |
parent | a857057536df6e55cb8eec0f894c192fe594272d (diff) | |
download | curl-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.c | 2 |
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; |