fix in http seed. incorrect status codes were accepted

This commit is contained in:
Arvid Norberg 2007-03-06 23:22:43 +00:00
parent a3dbea606e
commit 0fe9f53410
1 changed files with 2 additions and 2 deletions

View File

@ -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);