mirror of
https://github.com/curl/curl.git
synced 2026-08-03 01:10:28 +03:00
transfer: make HTTP without headers count correct body size
This is what "HTTP/0.9" basically looks like. Reported on IRC Closes #2382
This commit is contained in:
parent
634f72fed4
commit
a9a7b606c2
5 changed files with 60 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue