fix stats accounting when web seeds include a body

This commit is contained in:
Arvid Norberg
2012-08-14 03:20:53 +00:00
parent cee9b6d5cb
commit 9bca8ec3f2

View File

@@ -497,6 +497,9 @@ namespace libtorrent
}
location.resize(i);
}
// apparently web servers sometimes include a
// body in their redirects
received_bytes(0, bytes_transferred);
t->add_web_seed(location, web_seed_entry::url_seed, m_external_auth, m_extra_headers);
t->remove_web_seed(this);
disconnect(errors::redirecting, 2);