mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01: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)
|
||||
return payloadLength;
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user