[Modify] Add it

This commit is contained in:
sta 2020-02-13 21:00:29 +09:00
parent 11bbb6e2f1
commit 4476a99bf6

View File

@ -52,6 +52,7 @@ namespace WebSocketSharp.Net
private bool _disposed; private bool _disposed;
private Stream _innerStream; private Stream _innerStream;
private static readonly byte[] _lastChunk; private static readonly byte[] _lastChunk;
private static readonly int _maxHeadersLength;
private HttpListenerResponse _response; private HttpListenerResponse _response;
private bool _sendChunked; private bool _sendChunked;
private Action<byte[], int, int> _write; private Action<byte[], int, int> _write;
@ -66,6 +67,7 @@ namespace WebSocketSharp.Net
{ {
_crlf = new byte[] { 13, 10 }; // "\r\n" _crlf = new byte[] { 13, 10 }; // "\r\n"
_lastChunk = new byte[] { 48, 13, 10, 13, 10 }; // "0\r\n\r\n" _lastChunk = new byte[] { 48, 13, 10, 13, 10 }; // "0\r\n\r\n"
_maxHeadersLength = 32768;
} }
#endregion #endregion