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

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