[Modify] Polish it
This commit is contained in:
parent
da1cc9fba6
commit
470f7b281a
@ -182,7 +182,7 @@ namespace WebSocketSharp.Net
|
|||||||
if (_gotIt)
|
if (_gotIt)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (b == 32) { // SP
|
if (b == 32 || b == 59) { // SP or ';'
|
||||||
_gotIt = true;
|
_gotIt = true;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
@ -197,8 +197,7 @@ namespace WebSocketSharp.Net
|
|||||||
if (b != 10)
|
if (b != 10)
|
||||||
return InputChunkState.None;
|
return InputChunkState.None;
|
||||||
|
|
||||||
var val = _saved.ToString ();
|
var s = _saved.ToString ();
|
||||||
var s = removeChunkExtension (val);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_chunkSize = Int32.Parse (s, NumberStyles.HexNumber);
|
_chunkSize = Int32.Parse (s, NumberStyles.HexNumber);
|
||||||
|
Loading…
Reference in New Issue
Block a user