From: Daniel Stenberg Date: Tue, 22 Sep 2020 06:49:48 +0000 (+0200) Subject: http_proxy: do not count proxy headers in the header bytecount X-Git-Tag: curl-7_73_0~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5803089a9dafcbf7f98730fefceb50872209817;p=thirdparty%2Fcurl.git http_proxy: do not count proxy headers in the header bytecount ... as that counter is subsequently used to detect if nothing was returned from the peer. This made curl return CURLE_OK when it should have returned CURLE_GOT_NOTHING. Fixes #5992 Reported-by: Tom van der Woerdt Closes #5994 --- diff --git a/lib/http_proxy.c b/lib/http_proxy.c index f188cbfc60..7c34d20648 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -425,7 +425,6 @@ static CURLcode CONNECT(struct connectdata *conn, } data->info.header_size += (long)perline; - data->req.headerbytecount += (long)perline; /* Newlines are CRLF, so the CR is ignored as the line isn't really terminated until the LF comes. Treat a following CR