Browse Source

Use the proper typespec for the websocket_deflate_frame rsv bits

Ali Sabil 12 years ago
parent
commit
c5c9c398ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cowboy_websocket.erl

+ 1 - 1
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 ->