aboutsummaryrefslogtreecommitdiff
path: root/lib/libfetch
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2013-08-22 07:43:36 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2013-08-22 07:43:36 +0000
commit615c5740efbc23763305ec463a09a39f011757b9 (patch)
tree93fa7f8933040b0c37e9657da9e7f0064abe4e01 /lib/libfetch
parent5944de8ecd5c87f5c1d9a602c3557fd4d6829d0d (diff)
Notes
Diffstat (limited to 'lib/libfetch')
-rw-r--r--lib/libfetch/http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c
index 99b8030e7386..87535f001698 100644
--- a/lib/libfetch/http.c
+++ b/lib/libfetch/http.c
@@ -1400,6 +1400,8 @@ http_connect(struct url *URL, struct url *purl, const char *flags)
if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 && purl) {
http_cmd(conn, "CONNECT %s:%d HTTP/1.1",
URL->host, URL->port);
+ http_cmd(conn, "Host: %s:%d",
+ URL->host, URL->port);
http_cmd(conn, "");
if (http_get_reply(conn) != HTTP_OK) {
fetch_close(conn);