Modified a few for ChunkStream.cs, need to typecast from 'byte' to 'char'

This commit is contained in:
sta 2015-05-11 16:32:13 +09:00
parent 25108b1868
commit 181400f33a

View File

@ -177,7 +177,7 @@ namespace WebSocketSharp.Net
_gotIt = true;
if (!_gotIt)
_saved.Append (b);
_saved.Append ((char) b);
if (_saved.Length > 20)
throwProtocolViolation ("The chunk size is too long.");
@ -218,7 +218,7 @@ namespace WebSocketSharp.Net
while (offset < length && _trailerState < 4) {
var b = buffer[offset++];
_saved.Append (b);
_saved.Append ((char) b);
if (_saved.Length > 4196)
throwProtocolViolation ("The trailer is too long.");