diff options
author | Loïc Hoguin <[email protected]> | 2011-06-27 07:06:34 -0700 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-06-27 07:06:34 -0700 |
commit | 227529761c835637a5dbf77c83160d62a71ec720 (patch) | |
tree | 31030dbaeb3ec0e835404ad95a9a8f1e770cead4 /test | |
parent | f03dbf4d0662a231454f7c188c10e2892c2733ce (diff) | |
parent | bebe3dc5d2012877cdaf349012517eed40a93112 (diff) | |
download | cowboy-227529761c835637a5dbf77c83160d62a71ec720.tar.gz cowboy-227529761c835637a5dbf77c83160d62a71ec720.tar.bz2 cowboy-227529761c835637a5dbf77c83160d62a71ec720.zip |
Merge pull request #29 from smarkets/ws-default-ports
do not send ports 80 and 443 - browsers get mad
Diffstat (limited to 'test')
-rw-r--r-- | test/http_SUITE.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl index b5b615d..409914d 100644 --- a/test/http_SUITE.erl +++ b/test/http_SUITE.erl @@ -212,7 +212,7 @@ websocket(Config) -> [Headers, Body] = websocket_headers(erlang:decode_packet(httph, Rest, []), []), {'Connection', "Upgrade"} = lists:keyfind('Connection', 1, Headers), {'Upgrade', "WebSocket"} = lists:keyfind('Upgrade', 1, Headers), - {"sec-websocket-location", "ws://localhost:80/websocket"} + {"sec-websocket-location", "ws://localhost/websocket"} = lists:keyfind("sec-websocket-location", 1, Headers), {"sec-websocket-origin", "http://localhost"} = lists:keyfind("sec-websocket-origin", 1, Headers), |