From 181400f33a11ee765416b1e969247a2076189215 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 11 May 2015 16:32:13 +0900 Subject: [PATCH] Modified a few for ChunkStream.cs, need to typecast from 'byte' to 'char' --- websocket-sharp/Net/ChunkStream.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/ChunkStream.cs b/websocket-sharp/Net/ChunkStream.cs index df226044..efd9325b 100644 --- a/websocket-sharp/Net/ChunkStream.cs +++ b/websocket-sharp/Net/ChunkStream.cs @@ -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.");