From 6519660372fda1eb6dd0630ef7a236665c6550ad Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 29 Nov 2008 23:00:57 +0000 Subject: [PATCH] add port number of host field in http requests --- src/http_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_connection.cpp b/src/http_connection.cpp index 34357f333..962c2f540 100644 --- a/src/http_connection.cpp +++ b/src/http_connection.cpp @@ -100,7 +100,7 @@ void http_connection::get(std::string const& url, time_duration timeout, int pri else { headers << "GET " << path << " HTTP/1.0\r\n" - "Host:" << hostname << "\r\n"; + "Host:" << hostname << ":" << port << "\r\n"; } if (!auth.empty())