[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;
var val = _saved.ToString ();
var s = removeChunkExtension (val);
try {
_chunkSize = Int32.Parse (
removeChunkExtension (_saved.ToString ()),
NumberStyles.HexNumber
);
_chunkSize = Int32.Parse (s, NumberStyles.HexNumber);
}
catch {
throwProtocolViolation ("The chunk size cannot be parsed.");