mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix Websocket
from @Paulchen-Panther
This commit is contained in:
parent
4c2b75b45a
commit
29058420a2
@ -101,7 +101,7 @@ void JsonClientConnection::getWsFrameHeader(WebSocketHeader* header)
|
|||||||
case payload_size_code_16bit:
|
case payload_size_code_16bit:
|
||||||
{
|
{
|
||||||
QByteArray buf = _socket->read(2);
|
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;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user