diff options
author | Andrew Resch <andrewresch@gmail.com> | 2008-11-29 23:05:03 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2008-11-29 23:05:03 +0000 |
commit | 14e34c8f035ad4b3fb07065f380b9998576e71f4 (patch) | |
tree | e671e7f062fddd522773f582c9045395ffd3d948 | |
parent | cfec86be752fbf59624fbe627e95de3778e630a0 (diff) | |
download | deluge-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.cpp | 2 |
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()) |