From a55901c87a6ab37e93bcd82f980698f8dc033bee Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 29 Nov 2008 23:05:03 +0000 Subject: [PATCH] lt sync 2995 - add port number of host field in http requests --- libtorrent/src/http_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtorrent/src/http_connection.cpp b/libtorrent/src/http_connection.cpp index ef06533f1..b8251de95 100644 --- a/libtorrent/src/http_connection.cpp +++ b/libtorrent/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())