aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_websocket.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-03-12 21:57:07 +0100
committerLoïc Hoguin <[email protected]>2012-03-12 21:57:07 +0100
commit3885912d9b61639437a738707299d2b14d40ed67 (patch)
treefff0f88d27be3d53b2132bb42cea6292117e176c /src/cowboy_http_websocket.erl
parent5d46ad0e58623591ca97c42f76a4e0151d724047 (diff)
downloadcowboy-3885912d9b61639437a738707299d2b14d40ed67.tar.gz
cowboy-3885912d9b61639437a738707299d2b14d40ed67.tar.bz2
cowboy-3885912d9b61639437a738707299d2b14d40ed67.zip
Rename inet:ip_port() to inet:port_number()
Thanks go to @superbobry for pointing it out.
Diffstat (limited to 'src/cowboy_http_websocket.erl')
-rw-r--r--src/cowboy_http_websocket.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cowboy_http_websocket.erl b/src/cowboy_http_websocket.erl
index a926261..40fef23 100644
--- a/src/cowboy_http_websocket.erl
+++ b/src/cowboy_http_websocket.erl
@@ -467,8 +467,8 @@ hixie76_key_to_integer(Key) ->
Spaces = length([C || << C >> <= Key, C =:= 32]),
Number div Spaces.
--spec hixie76_location(atom(), binary(), inet:ip_port(), binary(), binary())
- -> binary().
+-spec hixie76_location(atom(), binary(), inet:port_number(),
+ binary(), binary()) -> binary().
hixie76_location(Protocol, Host, Port, Path, <<>>) ->
<< (hixie76_location_protocol(Protocol))/binary, "://", Host/binary,
(hixie76_location_port(Protocol, Port))/binary, Path/binary>>;
@@ -482,7 +482,7 @@ hixie76_location_protocol(_) -> <<"ws">>.
%% @todo We should add a secure/0 function to transports
%% instead of relying on their name.
--spec hixie76_location_port(atom(), inet:ip_port()) -> binary().
+-spec hixie76_location_port(atom(), inet:port_number()) -> binary().
hixie76_location_port(ssl, 443) ->
<<>>;
hixie76_location_port(tcp, 80) ->