don't try to absolutise an empty string

This commit is contained in:
jez 2007-08-24 10:38:13 +00:00
parent 70910a56de
commit cb35ff15c4

View file

@ -34,8 +34,11 @@ URI::URI(const URI& base, const std::string& relativeUrl) :
path_(base.path_), path_(base.path_),
port_(base.port_) port_(base.port_)
{ {
if(!relativeUrl.empty())
{
URI relUrl(relativeUrl); URI relUrl(relativeUrl);
absolutise(relUrl); absolutise(relUrl);
} // if ...
} // URI } // URI
const std::string& URI::port() const const std::string& URI::port() const