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_),
port_(base.port_)
{
URI relUrl(relativeUrl);
absolutise(relUrl);
if(!relativeUrl.empty())
{
URI relUrl(relativeUrl);
absolutise(relUrl);
} // if ...
} // URI
const std::string& URI::port() const