diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-03-15 00:27:20 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-03-15 10:56:27 +0100 |
commit | a9a7b606c2341bb0fced33f5f00f45900beb9c8f (patch) | |
tree | 7de8f52429f48b70f4999df9fa3b624c2de0624f /lib | |
parent | 634f72fed425376ac395426081011a80c93c447d (diff) |
transfer: make HTTP without headers count correct body size
This is what "HTTP/0.9" basically looks like.
Reported on IRC
Closes #2382
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; |