Blame SOURCES/0026-curl-7.29.0-bc6037ed.patch

92baa4
From ea3f4adb3c2b10cfb6b7720a3325cb81569a60a3 Mon Sep 17 00:00:00 2001
92baa4
From: Martin Jansen <martin@divbyzero.net>
92baa4
Date: Wed, 6 Mar 2013 21:20:44 +0100
92baa4
Subject: [PATCH] Curl_proxyCONNECT: count received headers
92baa4
92baa4
Proxy servers tend to add their own headers at the beginning of
92baa4
responses. The size of these headers was not taken into account by
92baa4
CURLINFO_HEADER_SIZE before this change.
92baa4
92baa4
Bug: http://curl.haxx.se/bug/view.cgi?id=1204
92baa4
Upstream-commit: bc6037ed3ec029b9f1372f708521fcada4a74af7
92baa4
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
92baa4
---
92baa4
 lib/http_proxy.c | 4 ++++
92baa4
 1 file changed, 4 insertions(+)
92baa4
92baa4
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
92baa4
index 4f17ce2..c2eb667 100644
92baa4
--- a/lib/http_proxy.c
92baa4
+++ b/lib/http_proxy.c
92baa4
@@ -356,6 +356,10 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
92baa4
 
92baa4
                   result = Curl_client_write(conn, writetype, line_start,
92baa4
                                              perline);
92baa4
+
92baa4
+                  data->info.header_size += (long)perline;
92baa4
+                  data->req.headerbytecount += (long)perline;
92baa4
+
92baa4
                   if(result)
92baa4
                     return result;
92baa4
 
92baa4
-- 
92baa4
2.1.0
92baa4