diff --git a/websocket-sharp/Net/ResponseStream.cs b/websocket-sharp/Net/ResponseStream.cs index 2797b955..1a39ebfa 100644 --- a/websocket-sharp/Net/ResponseStream.cs +++ b/websocket-sharp/Net/ResponseStream.cs @@ -226,6 +226,7 @@ namespace WebSocketSharp.Net private static byte[] getChunkSizeBytes (int size) { var chunkSize = String.Format ("{0:x}\r\n", size); + return Encoding.ASCII.GetBytes (chunkSize); }