From 7df5756ab724631f72fd0ce44c95a968f8758577 Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 14 Mar 2021 22:03:25 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/ChunkStream.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/ChunkStream.cs b/websocket-sharp/Net/ChunkStream.cs index 18aaef41..44990271 100644 --- a/websocket-sharp/Net/ChunkStream.cs +++ b/websocket-sharp/Net/ChunkStream.cs @@ -182,8 +182,10 @@ namespace WebSocketSharp.Net if (b == 32) // SP _gotIt = true; - if (!_gotIt) - _saved.Append ((char) b); + if (_gotIt) + continue; + + _saved.Append ((char) b); } if (_saved.Length > 20)