diff options
author | Ali Sabil <[email protected]> | 2013-07-08 09:49:35 +0200 |
---|---|---|
committer | Ali Sabil <[email protected]> | 2013-07-08 09:49:35 +0200 |
commit | c5c9c398ffea608d22c410668b9b79b80b5bdb91 (patch) | |
tree | 47f32061a73278bf4d7fd409b4b4a63f56e4e065 | |
parent | 6f0b8804bca12cfe3e8dc5798c819e3f16c6936e (diff) | |
download | cowboy-c5c9c398ffea608d22c410668b9b79b80b5bdb91.tar.gz cowboy-c5c9c398ffea608d22c410668b9b79b80b5bdb91.tar.bz2 cowboy-c5c9c398ffea608d22c410668b9b79b80b5bdb91.zip |
Use the proper typespec for the websocket_deflate_frame rsv bits
-rw-r--r-- | src/cowboy_websocket.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_websocket.erl b/src/cowboy_websocket.erl index 54dbcd9..073d7c6 100644 --- a/src/cowboy_websocket.erl +++ b/src/cowboy_websocket.erl @@ -676,7 +676,7 @@ websocket_opcode(ping) -> 9; websocket_opcode(pong) -> 10. -spec websocket_deflate_frame(opcode(), binary(), #state{}) -> - {binary(), <<_:3>>, #state{}}. + {binary(), rsv(), #state{}}. websocket_deflate_frame(Opcode, Payload, State=#state{deflate_frame = DeflateFrame}) when DeflateFrame =:= false orelse Opcode >= 8 -> |