Fix Websocket

from @Paulchen-Panther
This commit is contained in:
brindosch 2017-10-14 17:37:22 +02:00 committed by GitHub
parent 4c2b75b45a
commit 29058420a2

View File

@ -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;