Blame SOURCES/wget-1.14-rh1203384.patch

bc22e6
From aed7d4163a9e2083d294a9471e1347ab13d6f2ab Mon Sep 17 00:00:00 2001
bc22e6
From: Pavel Mateja <pavel@netsafe.cz>
bc22e6
Date: Sat, 2 Nov 2013 11:27:58 +0100
bc22e6
Subject: [PATCH] http: specify Host when CONNECT is used.
bc22e6
bc22e6
---
bc22e6
 src/http.c    | 7 +++----
bc22e6
 2 files changed, 7 insertions(+), 4 deletions(-)
bc22e6
bc22e6
diff --git a/src/http.c b/src/http.c
bc22e6
index dbfcdfb..8917fa5 100644
bc22e6
--- a/src/http.c
bc22e6
+++ b/src/http.c
bc22e6
@@ -2013,10 +2013,9 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy,
bc22e6
                  the regular request below.  */
bc22e6
               proxyauth = NULL;
bc22e6
             }
bc22e6
-          /* Examples in rfc2817 use the Host header in CONNECT
bc22e6
-             requests.  I don't see how that gains anything, given
bc22e6
-             that the contents of Host would be exactly the same as
bc22e6
-             the contents of CONNECT.  */
bc22e6
+          request_set_header (connreq, "Host",
bc22e6
+                              aprintf ("%s:%d", u->host, u->port),
bc22e6
+                              rel_value);
bc22e6
 
bc22e6
           write_error = request_send (connreq, sock, 0);
bc22e6
           request_free (connreq);
bc22e6
-- 
bc22e6
2.1.0
bc22e6