From 470f7b281a9c50fa0325661b0d748e879ce8c902 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 19 Mar 2021 19:36:20 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/ChunkStream.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/websocket-sharp/Net/ChunkStream.cs b/websocket-sharp/Net/ChunkStream.cs index d0b2f6b8..a8a9ca11 100644 --- a/websocket-sharp/Net/ChunkStream.cs +++ b/websocket-sharp/Net/ChunkStream.cs @@ -182,7 +182,7 @@ namespace WebSocketSharp.Net if (_gotIt) continue; - if (b == 32) { // SP + if (b == 32 || b == 59) { // SP or ';' _gotIt = true; continue; @@ -197,8 +197,7 @@ namespace WebSocketSharp.Net if (b != 10) return InputChunkState.None; - var val = _saved.ToString (); - var s = removeChunkExtension (val); + var s = _saved.ToString (); try { _chunkSize = Int32.Parse (s, NumberStyles.HexNumber);