mirror of
https://github.com/jezhiggins/arabica
synced 2025-02-11 08:48:06 +01:00
don't try to absolutise an empty string
This commit is contained in:
parent
70910a56de
commit
cb35ff15c4
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue