fix in http seed. incorrect status codes were accepted
This commit is contained in:
parent
a3dbea606e
commit
0fe9f53410
|
@ -313,8 +313,8 @@ namespace libtorrent
|
|||
// if the status code is not one of the accepted ones, abort
|
||||
if (m_parser.status_code() != 206 // partial content
|
||||
&& m_parser.status_code() != 200 // OK
|
||||
&& m_parser.status_code() < 300 // redirect
|
||||
&& m_parser.status_code() >= 400)
|
||||
&& !(m_parser.status_code() >= 300 // redirect
|
||||
&& m_parser.status_code() < 400))
|
||||
{
|
||||
// we should not try this server again.
|
||||
t->remove_url_seed(m_url);
|
||||
|
|
Loading…
Reference in New Issue