diff --git a/websocket-sharp/Net/HttpListenerRequest.cs b/websocket-sharp/Net/HttpListenerRequest.cs index 293b8321..48501b12 100644 --- a/websocket-sharp/Net/HttpListenerRequest.cs +++ b/websocket-sharp/Net/HttpListenerRequest.cs @@ -60,6 +60,7 @@ namespace WebSocketSharp.Net private static readonly byte[] _100continue; private string[] _acceptTypes; private bool _chunked; + private HttpConnection _connection; private Encoding _contentEncoding; private long _contentLength; private HttpListenerContext _context; @@ -93,6 +94,8 @@ namespace WebSocketSharp.Net internal HttpListenerRequest (HttpListenerContext context) { _context = context; + + _connection = context.Connection; _contentLength = -1; _headers = new WebHeaderCollection (); _identifier = Guid.NewGuid ();