Skip to content

Commit 12c62f7

Browse files
committed
Fixes #3, again
1 parent 4e1d254 commit 12c62f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boost/network/uri/http/uri.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace boost { namespace network { namespace uri {
2525
basic_uri() : uri_base<tags::http_default_8bit_tcp_resolve>() {}
2626
basic_uri(uri_base<tags::http_default_8bit_tcp_resolve>::string_type const & uri) : uri_base<tags::http_default_8bit_tcp_resolve>(uri) {}
2727

28-
boost::uint32_t port() const {
28+
boost::uint16_t port() const {
2929
return parts_.port ? *(parts_.port) :
3030
(boost::iequals(parts_.scheme, string_type("https")) ? 443u : 80u);
3131
}
@@ -36,7 +36,7 @@ namespace boost { namespace network { namespace uri {
3636
};
3737

3838
inline
39-
boost::uint32_t
39+
boost::uint16_t
4040
port(basic_uri<tags::http_default_8bit_tcp_resolve> const & uri) {
4141
return uri.port();
4242
}

0 commit comments

Comments
 (0)