Modified a few for ChunkStream.cs, need to typecast from 'byte' to 'char'
This commit is contained in:
parent
25108b1868
commit
181400f33a
@ -177,7 +177,7 @@ namespace WebSocketSharp.Net
|
|||||||
_gotIt = true;
|
_gotIt = true;
|
||||||
|
|
||||||
if (!_gotIt)
|
if (!_gotIt)
|
||||||
_saved.Append (b);
|
_saved.Append ((char) b);
|
||||||
|
|
||||||
if (_saved.Length > 20)
|
if (_saved.Length > 20)
|
||||||
throwProtocolViolation ("The chunk size is too long.");
|
throwProtocolViolation ("The chunk size is too long.");
|
||||||
@ -218,7 +218,7 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
while (offset < length && _trailerState < 4) {
|
while (offset < length && _trailerState < 4) {
|
||||||
var b = buffer[offset++];
|
var b = buffer[offset++];
|
||||||
_saved.Append (b);
|
_saved.Append ((char) b);
|
||||||
if (_saved.Length > 4196)
|
if (_saved.Length > 4196)
|
||||||
throwProtocolViolation ("The trailer is too long.");
|
throwProtocolViolation ("The trailer is too long.");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user