[Modify] Add it

This commit is contained in:
sta 2020-02-01 21:32:52 +09:00
parent 6410fca741
commit 9cb5ee3f52

View File

@ -48,7 +48,7 @@ namespace WebSocketSharp.Net
#region Private Fields
private MemoryStream _body;
private static readonly byte[] _crlf = new byte[] { 13, 10 };
private static readonly byte[] _crlf;
private bool _disposed;
private HttpListenerResponse _response;
private bool _sendChunked;
@ -59,6 +59,15 @@ namespace WebSocketSharp.Net
#endregion
#region Static Constructor
static ResponseStream ()
{
_crlf = new byte[] { 13, 10 };
}
#endregion
#region Internal Constructors
internal ResponseStream (