[Fix] Remove unnecessary compressed

This commit is contained in:
sta 2016-11-28 16:46:09 +09:00
parent 6a349f461c
commit ed1369a61b

View File

@ -1576,7 +1576,7 @@ namespace WebSocketSharp
{
var len = stream.Length;
if (len == 0)
return send (Fin.Final, opcode, EmptyBytes, compressed);
return send (Fin.Final, opcode, EmptyBytes, false);
var quo = len / FragmentLength;
var rem = (int) (len % FragmentLength);
@ -1607,7 +1607,7 @@ namespace WebSocketSharp
var n = rem == 0 ? quo - 2 : quo - 1;
for (long i = 0; i < n; i++) {
sent = stream.Read (buff, 0, FragmentLength) == FragmentLength
&& send (Fin.More, Opcode.Cont, buff, compressed);
&& send (Fin.More, Opcode.Cont, buff, false);
if (!sent)
return false;
@ -1620,7 +1620,7 @@ namespace WebSocketSharp
buff = new byte[rem];
return stream.Read (buff, 0, rem) == rem
&& send (Fin.Final, Opcode.Cont, buff, compressed);
&& send (Fin.Final, Opcode.Cont, buff, false);
}
private bool send (Fin fin, Opcode opcode, byte[] data, bool compressed)