mirror of
https://github.com/moparisthebest/curl
synced 2025-03-01 09:51:46 -05:00
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
This commit is contained in:
parent
a8e08a87df
commit
e5803089a9
@ -425,7 +425,6 @@ static CURLcode CONNECT(struct connectdata *conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
data->info.header_size += (long)perline;
|
data->info.header_size += (long)perline;
|
||||||
data->req.headerbytecount += (long)perline;
|
|
||||||
|
|
||||||
/* Newlines are CRLF, so the CR is ignored as the line isn't
|
/* Newlines are CRLF, so the CR is ignored as the line isn't
|
||||||
really terminated until the LF comes. Treat a following CR
|
really terminated until the LF comes. Treat a following CR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user