diff options
author | Martin Jansen <martin@divbyzero.net> | 2013-03-06 21:20:44 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-03-23 23:20:01 +0100 |
commit | bc6037ed3ec029b9f1372f708521fcada4a74af7 (patch) | |
tree | f94c79bfed7623228995686c6f933e97887016ad /lib | |
parent | ce2008066a519e0574e84cf3078fd8d7c41e638e (diff) |
Curl_proxyCONNECT: count received headers
Proxy servers tend to add their own headers at the beginning of
responses. The size of these headers was not taken into account by
CURLINFO_HEADER_SIZE before this change.
Bug: http://curl.haxx.se/bug/view.cgi?id=1204
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http_proxy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c index 90609467e..7c60e9582 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -356,6 +356,10 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn, result = Curl_client_write(conn, writetype, line_start, perline); + + data->info.header_size += (long)perline; + data->req.headerbytecount += (long)perline; + if(result) return result; |