diff --git a/examples/uri.cc b/examples/uri.cc index f9da82c..f1e98e6 100644 --- a/examples/uri.cc +++ b/examples/uri.cc @@ -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);