From 215b7dcf350afa9b9654c0f66a98f26e13d66e81 Mon Sep 17 00:00:00 2001 From: SQyang <951802237@qq.com> Date: Thu, 13 Aug 2020 13:18:16 +0800 Subject: [PATCH 1/2] Update websocket.h --- include/crow/websocket.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/crow/websocket.h b/include/crow/websocket.h index c2dc3f81f..b14a56dd1 100644 --- a/include/crow/websocket.h +++ b/include/crow/websocket.h @@ -349,6 +349,11 @@ namespace crow state_ = WebSocketReadState::MiniHeader; do_read(); } + else + { + state_ = WebSocketReadState::Payload; + do_read(); + } } else { From 0cb93301257c2af8f537125e552f01d4aee437a0 Mon Sep 17 00:00:00 2001 From: SQyang <951802237@qq.com> Date: Mon, 24 Aug 2020 19:47:30 +0800 Subject: [PATCH 2/2] Update websocket.h --- include/crow/websocket.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/crow/websocket.h b/include/crow/websocket.h index b14a56dd1..d6d3aa7d8 100644 --- a/include/crow/websocket.h +++ b/include/crow/websocket.h @@ -350,10 +350,7 @@ namespace crow do_read(); } else - { - state_ = WebSocketReadState::Payload; do_read(); - } } else {