]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http_proxy: do not count proxy headers in the header bytecount
authorDaniel Stenberg <daniel@haxx.se>
Tue, 22 Sep 2020 06:49:48 +0000 (08:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 22 Sep 2020 08:54:34 +0000 (10:54 +0200)
... 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

lib/http_proxy.c

index f188cbfc608a2ae8a6eb7c4e5aa43d24ef7e83dc..7c34d20648f45afc268a51ac87111081de05b5c7 100644 (file)
@@ -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