[Modify] Add it

master
sta 7 years ago
parent 6eadaf2ccd
commit 0611e8a276

@ -69,6 +69,7 @@ namespace WebSocketSharp.Net
private Uri _commentUri; private Uri _commentUri;
private bool _discard; private bool _discard;
private string _domain; private string _domain;
private static readonly int[] _emptyPorts;
private DateTime _expires; private DateTime _expires;
private bool _httpOnly; private bool _httpOnly;
private string _name; private string _name;
@ -88,6 +89,7 @@ namespace WebSocketSharp.Net
static Cookie () static Cookie ()
{ {
_emptyPorts = new int[0];
_reservedCharsForName = new[] { ' ', '=', ';', ',', '\n', '\r', '\t' }; _reservedCharsForName = new[] { ' ', '=', ';', ',', '\n', '\r', '\t' };
_reservedCharsForValue = new[] { ';', ',' }; _reservedCharsForValue = new[] { ';', ',' };
} }

Loading…
Cancel
Save