mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Use the proper typespec for the websocket_deflate_frame rsv bits
This commit is contained in:
parent
6f0b8804bc
commit
c5c9c398ff
1 changed files with 1 additions and 1 deletions
|
@ -676,7 +676,7 @@ websocket_opcode(ping) -> 9;
|
||||||
websocket_opcode(pong) -> 10.
|
websocket_opcode(pong) -> 10.
|
||||||
|
|
||||||
-spec websocket_deflate_frame(opcode(), binary(), #state{}) ->
|
-spec websocket_deflate_frame(opcode(), binary(), #state{}) ->
|
||||||
{binary(), <<_:3>>, #state{}}.
|
{binary(), rsv(), #state{}}.
|
||||||
websocket_deflate_frame(Opcode, Payload,
|
websocket_deflate_frame(Opcode, Payload,
|
||||||
State=#state{deflate_frame = DeflateFrame})
|
State=#state{deflate_frame = DeflateFrame})
|
||||||
when DeflateFrame =:= false orelse Opcode >= 8 ->
|
when DeflateFrame =:= false orelse Opcode >= 8 ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue