fixed redirect bug in http connection

This commit is contained in:
Arvid Norberg 2011-03-21 02:11:39 +00:00
parent 3a7bdde864
commit 16114ab27c
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ void http_connection::start(std::string const& hostname, std::string const& port
#if defined TORRENT_ASIO_DEBUGGING #if defined TORRENT_ASIO_DEBUGGING
add_outstanding_async("http_connection::on_resolve"); add_outstanding_async("http_connection::on_resolve");
#endif #endif
m_endpoints.clear();
tcp::resolver::query query(hostname, port); tcp::resolver::query query(hostname, port);
m_resolver.async_resolve(query, boost::bind(&http_connection::on_resolve m_resolver.async_resolve(query, boost::bind(&http_connection::on_resolve
, me, _1, _2)); , me, _1, _2));