diff --git a/uppsrc/Core/WebSocket.cpp b/uppsrc/Core/WebSocket.cpp index c0fe848cd..e5fa8a978 100644 --- a/uppsrc/Core/WebSocket.cpp +++ b/uppsrc/Core/WebSocket.cpp @@ -461,7 +461,7 @@ void WebSocket::SendRaw(int hdr, const String& data, dword mask) header.Cat(byte(len)); } else - header.Cat((int)len); + header.Cat((int)len | mask); if(mask) { byte Cle[4];