[Modify] Polish it

This commit is contained in:
sta 2021-03-17 21:04:45 +09:00
parent b0fa93b9f9
commit 3fc87d18ea

View File

@ -194,8 +194,6 @@ namespace WebSocketSharp.Net
if (b != 10)
return InputChunkState.None;
_chunkRead = 0;
var val = _saved.ToString ();
var s = removeChunkExtension (val);
@ -206,6 +204,8 @@ namespace WebSocketSharp.Net
throwProtocolViolation ("The chunk size cannot be parsed.");
}
_chunkRead = 0;
if (_chunkSize == 0) {
_trailerState = 2;