[Modify] Polish it
This commit is contained in:
parent
e30629d9aa
commit
b5265bceb1
@ -202,7 +202,8 @@ namespace WebSocketSharp.Net
|
||||
|
||||
private static byte[] getChunkSizeBytes (int size, bool final)
|
||||
{
|
||||
return Encoding.ASCII.GetBytes (String.Format ("{0:x}\r\n{1}", size, final ? "\r\n" : ""));
|
||||
var chunkSize = String.Format ("{0:x}\r\n{1}", size, final ? "\r\n" : "");
|
||||
return Encoding.ASCII.GetBytes (chunkSize);
|
||||
}
|
||||
|
||||
private void writeChunked (byte[] buffer, int offset, int count)
|
||||
|
Loading…
Reference in New Issue
Block a user