[Modify] Polish it

This commit is contained in:
sta 2021-03-17 21:02:54 +09:00
parent d46096a5ac
commit b0fa93b9f9

View File

@ -196,11 +196,11 @@ namespace WebSocketSharp.Net
_chunkRead = 0; _chunkRead = 0;
var val = _saved.ToString ();
var s = removeChunkExtension (val);
try { try {
_chunkSize = Int32.Parse ( _chunkSize = Int32.Parse (s, NumberStyles.HexNumber);
removeChunkExtension (_saved.ToString ()),
NumberStyles.HexNumber
);
} }
catch { catch {
throwProtocolViolation ("The chunk size cannot be parsed."); throwProtocolViolation ("The chunk size cannot be parsed.");