Skip to content

Commit

Permalink
Fix of WebSocket close status frame
Browse files Browse the repository at this point in the history
  • Loading branch information
chronoxor committed Nov 19, 2023
1 parent 826e690 commit 5eaaf4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/server/ws/ws.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ void WebSocket::PrepareReceiveFrame(const void* buffer, size_t size)
}

uint8_t opcode = _ws_receive_frame_buffer[0] & 0x0F;
[[maybe_unused]] bool fin = ((_ws_receive_frame_buffer[0] >> 7) & 0x01) != 0;
bool fin = ((_ws_receive_frame_buffer[0] >> 7) & 0x01) != 0;
bool mask = ((_ws_receive_frame_buffer[1] >> 7) & 0x01) != 0;
size_t payload = _ws_receive_frame_buffer[1] & (~0x80);

Expand Down

0 comments on commit 5eaaf4e

Please sign in to comment.