From 29058420a22f97add92d2f718bf6586d6fc574dd Mon Sep 17 00:00:00 2001 From: brindosch Date: Sat, 14 Oct 2017 17:37:22 +0200 Subject: [PATCH] Fix Websocket from @Paulchen-Panther --- libsrc/jsonserver/JsonClientConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/jsonserver/JsonClientConnection.cpp b/libsrc/jsonserver/JsonClientConnection.cpp index 7a7ea05f..c1a7b273 100644 --- a/libsrc/jsonserver/JsonClientConnection.cpp +++ b/libsrc/jsonserver/JsonClientConnection.cpp @@ -101,7 +101,7 @@ void JsonClientConnection::getWsFrameHeader(WebSocketHeader* header) case payload_size_code_16bit: { QByteArray buf = _socket->read(2); - header->payloadLength = ((buf.at(2) << 8) & 0xFF00) | (buf.at(3) & 0xFF); + header->payloadLength = ((buf.at(0) << 8) & 0xFF00) | (buf.at(1) & 0xFF); } break;