diff --git a/include/libtorrent/web_peer_connection.hpp b/include/libtorrent/web_peer_connection.hpp index 7fc626e87..5c610ac4d 100644 --- a/include/libtorrent/web_peer_connection.hpp +++ b/include/libtorrent/web_peer_connection.hpp @@ -96,7 +96,7 @@ namespace libtorrent void on_receive(error_code const& error , std::size_t bytes_transferred); - std::string const& url() const { return m_original_url; } + std::string const& url() const { return m_url; } virtual void get_specific_peer_info(peer_info& p) const; virtual void disconnect(error_code const& ec, int error = 0); @@ -117,7 +117,6 @@ namespace libtorrent std::deque m_file_requests; std::string m_url; - std::string m_original_url; // this is used for intermediate storage of pieces // that are received in more than one HTTP response diff --git a/src/web_peer_connection.cpp b/src/web_peer_connection.cpp index 23a1f3521..a516e150d 100644 --- a/src/web_peer_connection.cpp +++ b/src/web_peer_connection.cpp @@ -378,7 +378,7 @@ namespace libtorrent + (" " + m_parser.message()); if (m_ses.m_alerts.should_post()) { - m_ses.m_alerts.post_alert(url_seed_alert(t->get_handle(), url() + m_ses.m_alerts.post_alert(url_seed_alert(t->get_handle(), m_url , error_msg)); } m_statistics.received_bytes(0, bytes_transferred);