Skip to content

Commit

Permalink
Fix bug in WebSocket masking
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Corry committed Jul 24, 2023
1 parent aabac63 commit de941e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web_socket.toit
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ class FragmentReader_:
received_ := 0
masking_bytes /ByteArray? := null

constructor .owner_ .size_ .control_bits_ --masking_bytes/ByteArray?=null:
constructor .owner_ .size_ .control_bits_ --.masking_bytes/ByteArray?=null:

is_continuation -> bool: return control_bits_ & 0x0f == OPCODE_CONTINUATION_
is_text -> bool: return control_bits_ & 0x0f == OPCODE_TEXT_
Expand Down

0 comments on commit de941e0

Please sign in to comment.