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