Fixed protocol://:port notation for hostless ports over a protocol
This commit is contained in:
parent
e6f64fafb1
commit
3f3fd585c1
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ HTTP::URL::URL(const std::string &url){
|
|||
}
|
||||
}
|
||||
// if the host is numeric, assume it is a port, instead
|
||||
if (is_numeric(host.c_str())){
|
||||
if (host.size() && is_numeric(host.c_str())){
|
||||
port = host;
|
||||
host = "";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue