summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-09-22 08:49:48 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-22 10:54:34 +0200
commite5803089a9dafcbf7f98730fefceb50872209817 (patch)
tree745857813c9c25398aca4576b4dbb5dc5deef302
parenta8e08a87dff8aeb91472c7064b8d19ca5c8ba318 (diff)
downloadcurl-e5803089a9dafcbf7f98730fefceb50872209817.tar.gz
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
-rw-r--r--lib/http_proxy.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index f188cbfc6..7c34d2064 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