aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Cammack <[email protected]>2013-02-09 16:27:24 -0600
committerAdam Cammack <[email protected]>2013-02-13 11:32:35 -0600
commit7f0c6bbb391280b8f8f35ad88ba79344deba9402 (patch)
tree3524e8bd3c79bec6dfa68361cce293720f699767 /src
parentb903aca33d6bf4ea72cf1c84d515cd21aab46d70 (diff)
downloadcowboy-7f0c6bbb391280b8f8f35ad88ba79344deba9402.tar.gz
cowboy-7f0c6bbb391280b8f8f35ad88ba79344deba9402.tar.bz2
cowboy-7f0c6bbb391280b8f8f35ad88ba79344deba9402.zip
Make cowboy_websocket.erl compile with +native
Worked until cccc0bc
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_websocket.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_websocket.erl b/src/cowboy_websocket.erl
index 1a87732..9bd6df6 100644
--- a/src/cowboy_websocket.erl
+++ b/src/cowboy_websocket.erl
@@ -256,7 +256,7 @@ websocket_data(State, Req, HandlerState, << Fin:1, _Rsv:3, Opcode:4, 1:1,
websocket_data(State, Req, HandlerState,
Opcode, Len, MaskKey, Rest, Fin);
%% When payload length is over 63 bits, the most significant bit MUST be 0.
-websocket_data(State, Req, HandlerState, << _:8, 1:1, 127:7, 1:1, _/bits >>) ->
+websocket_data(State, Req, HandlerState, << _:8, 1:1, 127:7, 1:1, _:7, _/binary >>) ->
websocket_close(State, Req, HandlerState, {error, badframe});
%% All frames sent from the client to the server are masked.
websocket_data(State, Req, HandlerState, << _:8, 0:1, _/bits >>) ->