mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 21:34:46 +02:00
Fix utf8 check for compressed frames
This commit is contained in:
@@ -3,6 +3,7 @@ Version 107:
|
||||
WebSocket
|
||||
|
||||
* Fix done state for WebSocket reads
|
||||
* Fix utf8 check for compressed frames
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@@ -543,8 +543,7 @@ operator()(
|
||||
// check utf8
|
||||
if(! ws_.rd_.utf8.write(
|
||||
buffer_prefix(bytes_written_, cb_.get())) || (
|
||||
ws_.rd_.remain == 0 && ws_.rd_.fh.fin &&
|
||||
! ws_.rd_.utf8.finish()))
|
||||
ws_.rd_.done && ! ws_.rd_.utf8.finish()))
|
||||
{
|
||||
// _Fail the WebSocket Connection_
|
||||
code = close_code::bad_payload;
|
||||
@@ -1241,8 +1240,7 @@ loop:
|
||||
// check utf8
|
||||
if(! rd_.utf8.write(
|
||||
buffer_prefix(bytes_written, buffers)) || (
|
||||
rd_.remain == 0 && rd_.fh.fin &&
|
||||
! rd_.utf8.finish()))
|
||||
rd_.done && ! rd_.utf8.finish()))
|
||||
{
|
||||
// _Fail the WebSocket Connection_
|
||||
do_fail(
|
||||
|
Reference in New Issue
Block a user