[Modify] Add it

This commit is contained in:
sta 2020-02-02 17:28:22 +09:00
parent 9cb5ee3f52
commit 78969c3c3d

View File

@ -50,6 +50,7 @@ namespace WebSocketSharp.Net
private MemoryStream _body; private MemoryStream _body;
private static readonly byte[] _crlf; private static readonly byte[] _crlf;
private bool _disposed; private bool _disposed;
private static readonly byte[] _lastChunk;
private HttpListenerResponse _response; private HttpListenerResponse _response;
private bool _sendChunked; private bool _sendChunked;
private Stream _stream; private Stream _stream;
@ -64,6 +65,7 @@ namespace WebSocketSharp.Net
static ResponseStream () static ResponseStream ()
{ {
_crlf = new byte[] { 13, 10 }; _crlf = new byte[] { 13, 10 };
_lastChunk = new byte[] { 48, 13, 10, 13, 10 }; // "0\r\n\r\n"
} }
#endregion #endregion