web_peer_connection statistics fix

This commit is contained in:
Arvid Norberg 2009-05-13 23:02:08 +00:00
parent 1c6c1957d5
commit 28c334fb35
1 changed files with 1 additions and 1 deletions

View File

@ -417,10 +417,10 @@ namespace libtorrent
// this means we got a redirection request
// look for the location header
std::string location = m_parser.header("location");
m_statistics.received_bytes(0, bytes_transferred);
if (location.empty())
{
m_statistics.received_bytes(0, bytes_transferred);
// we should not try this server again.
t->remove_web_seed(m_url, web_seed_entry::url_seed);
disconnect("got HTTP redirection status without location header", 2);