[Modify] Use readonly
This commit is contained in:
parent
1d20168915
commit
00929e01c9
@ -46,7 +46,7 @@ namespace WebSocketSharp.Net
|
||||
{
|
||||
#region Private Fields
|
||||
|
||||
private const int _bufferLength = 8192;
|
||||
private static readonly int _bufferLength;
|
||||
private HttpListenerContext _context;
|
||||
private ChunkStream _decoder;
|
||||
private bool _disposed;
|
||||
@ -54,6 +54,15 @@ namespace WebSocketSharp.Net
|
||||
|
||||
#endregion
|
||||
|
||||
#region Static Constructor
|
||||
|
||||
static ChunkedRequestStream ()
|
||||
{
|
||||
_bufferLength = 8192;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Internal Constructors
|
||||
|
||||
internal ChunkedRequestStream (
|
||||
|
Loading…
Reference in New Issue
Block a user