fixed UPnP issue where the control url contained the base url

This commit is contained in:
Andrew Resch 2009-03-12 20:15:05 +00:00
parent f07ff08dd2
commit 2ad491cfd3
1 changed files with 1 additions and 1 deletions

View File

@ -877,7 +877,7 @@ void upnp::on_upnp_xml(error_code const& e
}
}
if (!s.url_base.empty())
if (!s.url_base.empty() && s.control_url.substr(7) != "http://")
{
// avoid double slashes in path
if (s.url_base[s.url_base.size()-1] == '/'