Skip to content

Instantly share code, notes, and snippets.

@bagder
Created March 14, 2018 22:47
Show Gist options
  • Save bagder/08bd504b2af1a6895f644c344d75940e to your computer and use it in GitHub Desktop.
Save bagder/08bd504b2af1a6895f644c344d75940e to your computer and use it in GitHub Desktop.
just zeroes
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