mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-21 08:18:58 +02:00
Merge pull request #2453 from sgorsh/poco-1.9.1
Fixed WebSocket error message formatting.
This commit is contained in:
commit
98f80bf1d4
@ -193,7 +193,7 @@ int WebSocketImpl::receiveBytes(void* buffer, int length, int)
|
|||||||
if (payloadLength <= 0)
|
if (payloadLength <= 0)
|
||||||
return payloadLength;
|
return payloadLength;
|
||||||
if (payloadLength > length)
|
if (payloadLength > length)
|
||||||
throw WebSocketException(Poco::format("Insufficient buffer for payload size %hu", payloadLength), WebSocket::WS_ERR_PAYLOAD_TOO_BIG);
|
throw WebSocketException(Poco::format("Insufficient buffer for payload size %d", payloadLength), WebSocket::WS_ERR_PAYLOAD_TOO_BIG);
|
||||||
return receivePayload(reinterpret_cast<char*>(buffer), payloadLength, mask, useMask);
|
return receivePayload(reinterpret_cast<char*>(buffer), payloadLength, mask, useMask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user