generates a tracker message when a http-response redirects to another url

This commit is contained in:
Arvid Norberg 2007-01-05 02:08:48 +00:00
parent 56a7fc35bc
commit 03bb4121ad
1 changed files with 1 additions and 0 deletions

View File

@ -586,6 +586,7 @@ namespace libtorrent
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
if (has_requester()) requester().debug_log("Redirecting to \"" + location + "\"");
#endif
if (has_requester()) requester().tracker_warning("Redirecting to \"" + location + "\"");
tracker_request req = tracker_req();
std::string::size_type i = location.find('?');
if (i == std::string::npos)