mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-29 08:36:45 +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_),
|
||||
port_(base.port_)
|
||||
{
|
||||
URI relUrl(relativeUrl);
|
||||
absolutise(relUrl);
|
||||
if(!relativeUrl.empty())
|
||||
{
|
||||
URI relUrl(relativeUrl);
|
||||
absolutise(relUrl);
|
||||
} // if ...
|
||||
} // URI
|
||||
|
||||
const std::string& URI::port() const
|
||||
|
|
Loading…
Add table
Reference in a new issue