Fixed the bug that port number in URI is not parsed properly.

This commit is contained in:
Tatsuhiro Tsujikawa 2012-02-07 02:06:51 +09:00
parent 5012f177d0
commit 7f41ec03bd
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ bool parse(UriStruct& result, const std::string& uri)
} else if(65535 < tempPort) {
return false;
}
result.port = tempPort;
}
if(result.ipv6LiteralAddress) {
result.host.assign(hostPortFirst+1, hostLast-1);