forked from premiere/premiere-libtorrent
fixed bug when handling malformed webseed urls and an http proxy
This commit is contained in:
parent
8256a5628d
commit
cfbcacce79
|
@ -50,6 +50,10 @@
|
|||
* improved support for sparse files on windows
|
||||
* added ability to give seeding torrents preference to active slots
|
||||
|
||||
release 0.14.5
|
||||
|
||||
* fixed bug when handling malformed webseed urls and an http proxy
|
||||
|
||||
release 0.14.4
|
||||
|
||||
* connect candidate calculation fix
|
||||
|
|
|
@ -167,9 +167,9 @@ namespace libtorrent
|
|||
// handle incorrect .torrent files which are multi-file
|
||||
// but have web seeds not ending with a slash
|
||||
if (!single_file_request && (m_path.empty() || m_path[m_path.size() - 1] != '/'))
|
||||
{
|
||||
m_path += "/";
|
||||
}
|
||||
if (!single_file_request && (m_url.empty() || m_url[m_url.size() - 1] != '/'))
|
||||
m_url += "/";
|
||||
|
||||
torrent_info const& info = t->torrent_file();
|
||||
|
||||
|
|
Loading…
Reference in New Issue