Fix for issue #120, add 0x00 for 'BFINAL Set to 1'
This commit is contained in:
parent
d7dd15042a
commit
d0dc29d05d
@ -64,7 +64,8 @@ namespace WebSocketSharp
|
|||||||
{
|
{
|
||||||
#region Private Fields
|
#region Private Fields
|
||||||
|
|
||||||
private const string _tspecials = "()<>@,;:\\\"/[]?={} \t";
|
private static readonly byte[] _last = new byte[] { 0x00 };
|
||||||
|
private const string _tspecials = "()<>@,;:\\\"/[]?={} \t";
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@ -90,6 +91,7 @@ namespace WebSocketSharp
|
|||||||
using (var ds = new DeflateStream (output, CompressionMode.Compress, true)) {
|
using (var ds = new DeflateStream (output, CompressionMode.Compress, true)) {
|
||||||
stream.CopyTo (ds);
|
stream.CopyTo (ds);
|
||||||
ds.Close (); // "BFINAL" set to 1.
|
ds.Close (); // "BFINAL" set to 1.
|
||||||
|
output.Write (_last, 0, 1);
|
||||||
output.Position = 0;
|
output.Position = 0;
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
|
Loading…
Reference in New Issue
Block a user