[Modify] Polish it
This commit is contained in:
parent
d46096a5ac
commit
b0fa93b9f9
@ -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.");
|
||||||
|
Loading…
Reference in New Issue
Block a user