summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2008-11-29 23:05:03 +0000
committerAndrew Resch <andrewresch@gmail.com>2008-11-29 23:05:03 +0000
commit14e34c8f035ad4b3fb07065f380b9998576e71f4 (patch)
treee671e7f062fddd522773f582c9045395ffd3d948
parentcfec86be752fbf59624fbe627e95de3778e630a0 (diff)
downloaddeluge-14e34c8f035ad4b3fb07065f380b9998576e71f4.tar.gz
deluge-14e34c8f035ad4b3fb07065f380b9998576e71f4.tar.bz2
deluge-14e34c8f035ad4b3fb07065f380b9998576e71f4.zip
lt sync 2995 - add port number of host field in http requests
-rw-r--r--libtorrent/src/http_connection.cpp2
1 files changed, 1 insertions, 1 deletions
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())