Fixed the bug that port number in URI is not parsed properly.
This commit is contained in:
parent
5012f177d0
commit
7f41ec03bd
|
@ -214,6 +214,7 @@ bool parse(UriStruct& result, const std::string& uri)
|
||||||
} else if(65535 < tempPort) {
|
} else if(65535 < tempPort) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
result.port = tempPort;
|
||||||
}
|
}
|
||||||
if(result.ipv6LiteralAddress) {
|
if(result.ipv6LiteralAddress) {
|
||||||
result.host.assign(hostPortFirst+1, hostLast-1);
|
result.host.assign(hostPortFirst+1, hostLast-1);
|
||||||
|
|
Loading…
Reference in New Issue