Created
March 14, 2018 22:47
-
-
Save bagder/08bd504b2af1a6895f644c344d75940e to your computer and use it in GitHub Desktop.
just zeroes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/transfer.c b/lib/transfer.c | |
index fd9af3155..b5614f55f 100644 | |
--- a/lib/transfer.c | |
+++ b/lib/transfer.c | |
@@ -715,11 +715,11 @@ static CURLcode readwrite_data(struct Curl_easy *data, | |
/* If it returned OK, we just keep going */ | |
} | |
#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; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment