forked from premiere/premiere-libtorrent
fixed issue with single file web seeds with pre-urlencoded paths. Now, the url in the torrent file is assumed to be url-encoded.
This commit is contained in:
parent
0253004ab6
commit
17c905e37b
|
@ -175,8 +175,9 @@ namespace libtorrent
|
||||||
if (single_file_request)
|
if (single_file_request)
|
||||||
{
|
{
|
||||||
request += "GET ";
|
request += "GET ";
|
||||||
if (using_proxy) request += m_url;
|
// do not encode single file paths, they are
|
||||||
else request += escape_path(m_path.c_str(), m_path.length());
|
// assumed to be encoded in the torrent file
|
||||||
|
request += using_proxy ? m_url : m_path;
|
||||||
request += " HTTP/1.1\r\n";
|
request += " HTTP/1.1\r\n";
|
||||||
request += "Host: ";
|
request += "Host: ";
|
||||||
request += m_host;
|
request += m_host;
|
||||||
|
|
Loading…
Reference in New Issue