Преглед на файлове

2007-08-27 Marek Habersack <[email protected]>

            * HttpCookieTest.cs: the ToStringTest works now.

2007-08-27  Marek Habersack  <[email protected]>

            * HttpCookie.cs: make sure a key is output even if it has no
            values set. Fixes bug #81333.

svn path=/trunk/mcs/; revision=84872
Marek Habersack преди 18 години
родител
ревизия
59f39f940c

+ 5 - 0
mcs/class/System.Web/System.Web/ChangeLog

@@ -1,3 +1,8 @@
+2007-08-27  Marek Habersack  <[email protected]>
+
+	* HttpCookie.cs: make sure a key is output even if it has no
+	values set. Fixes bug #81333.
+
 2007-08-23  Marek Habersack  <[email protected]>
 
 	* HttpApplication.cs: added a static array BinDirs which contains

+ 3 - 4
mcs/class/System.Web/System.Web/HttpCookie.cs

@@ -243,7 +243,7 @@ namespace System.Web {
 
                                        string[] vals = GetValues (key);
                                        if(vals == null)
-                                               vals = new string[0];
+                                               vals = new string[1] {String.Empty};
 
 				       bool first_val = true;
                                        foreach (string v in vals) {
@@ -278,12 +278,11 @@ namespace System.Web {
 					Clear();
 					name = string.Empty;
 				}
-				if (value == null)
-					value = string.Empty;
+//				if (value == null)
+//					value = string.Empty;
 
 				base.Set (name, value);
 			}
 		}
 	}
-
 }

+ 4 - 0
mcs/class/System.Web/Test/System.Web/ChangeLog

@@ -1,3 +1,7 @@
+2007-08-27  Marek Habersack  <[email protected]>
+
+	* HttpCookieTest.cs: the ToStringTest works now.
+
 2007-07-30 Vladimir Krasnov <[email protected]>
 
 	* HttpResponseTest.cs: Test_Response, TestResponse_Chunked marked as

+ 0 - 1
mcs/class/System.Web/Test/System.Web/HttpCookieTest.cs

@@ -232,7 +232,6 @@ namespace MonoTests.System.Web {
 		}
 
 		[Test] // bug #81333
-		[Category ("NotWorking")]
 		public void ToStringTest ()
 		{
 			HttpCookie cookie;