diff options
Diffstat (limited to 'mcs/class/System/System.Net/Cookie.cs')
-rw-r--r-- | mcs/class/System/System.Net/Cookie.cs | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/mcs/class/System/System.Net/Cookie.cs b/mcs/class/System/System.Net/Cookie.cs index c0235be1f1e..30ee979fef1 100644 --- a/mcs/class/System/System.Net/Cookie.cs +++ b/mcs/class/System/System.Net/Cookie.cs @@ -57,24 +57,23 @@ namespace System.Net { private static char [] reservedCharsValue = new char [] {';', ','};
private static char [] portSeparators = new char [] {'"', ','};
private static string tspecials = "()<>@,;:\\\"/[]?={} \t"; // from RFC 2965, 2068
-
- public Cookie ()
- : this (String.Empty, String.Empty) {}
-
- public Cookie (string name, string value)
- {
- Name = name;
- Value = value;
-
- discard = false;
- expired = false;
- secure = false;
- expires = DateTime.MinValue;
- timestamp = DateTime.Now;
- version = 0;
- domain = "";
- }
-
+ + public Cookie () + { + expires = DateTime.MinValue; + timestamp = DateTime.Now; + domain = ""; + name = ""; + val = ""; + } + + public Cookie (string name, string value) + : this () + { + Name = name; + Value = value; + } + public Cookie (string name, string value, string path)
: this (name, value)
{
|