diff --git a/websocket-sharp/Net/HttpListenerResponse.cs b/websocket-sharp/Net/HttpListenerResponse.cs index 8ee98cd5..92c0a797 100644 --- a/websocket-sharp/Net/HttpListenerResponse.cs +++ b/websocket-sharp/Net/HttpListenerResponse.cs @@ -37,6 +37,13 @@ */ #endregion +#region Contributors +/* + * Contributors: + * - Nicholas Devenish + */ +#endregion + using System; using System.Collections.Generic; using System.Globalization; @@ -565,7 +572,7 @@ namespace WebSocketSharp.Net writer.Flush (); // Assumes that the destination was at position 0. - destination.Position = enc.CodePage == 65001 ? 3 : enc.GetPreamble ().Length; + destination.Position = enc.GetPreamble ().Length; return headers; }