[Modify] Polish it
This commit is contained in:
parent
f58aeb44ea
commit
a7cb530d01
@ -45,10 +45,11 @@ namespace WebSocketSharp
|
||||
{
|
||||
#region Private Fields
|
||||
|
||||
private string _method;
|
||||
private string _uri;
|
||||
private bool _websocketRequest;
|
||||
private bool _websocketRequestSet;
|
||||
private CookieCollection _cookies;
|
||||
private string _method;
|
||||
private string _uri;
|
||||
private bool _websocketRequest;
|
||||
private bool _websocketRequestSet;
|
||||
|
||||
#endregion
|
||||
|
||||
@ -86,7 +87,10 @@ namespace WebSocketSharp
|
||||
|
||||
public CookieCollection Cookies {
|
||||
get {
|
||||
return Headers.GetCookies (false);
|
||||
if (_cookies == null)
|
||||
_cookies = Headers.GetCookies (false);
|
||||
|
||||
return _cookies;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,6 @@ namespace WebSocketSharp.Net.WebSockets
|
||||
{
|
||||
#region Private Fields
|
||||
|
||||
private CookieCollection _cookies;
|
||||
private Logger _log;
|
||||
private NameValueCollection _queryString;
|
||||
private HttpRequest _request;
|
||||
@ -132,7 +131,7 @@ namespace WebSocketSharp.Net.WebSockets
|
||||
/// </value>
|
||||
public override CookieCollection CookieCollection {
|
||||
get {
|
||||
return _cookies ?? (_cookies = _request.Cookies);
|
||||
return _request.Cookies;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user