From 7f41ec03bd583c4d7f4994382f1ac2e0b011203c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 7 Feb 2012 02:06:51 +0900 Subject: [PATCH] Fixed the bug that port number in URI is not parsed properly. --- examples/uri.cc | 1 + 1 file changed, 1 insertion(+) 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);