Author: mhabersack
Date: 2007-08-27 08:50:59 -0400 (Mon, 27 Aug 2007)
New Revision: 84872

Modified:
   trunk/mcs/class/System.Web/System.Web/ChangeLog
   trunk/mcs/class/System.Web/System.Web/HttpCookie.cs
   trunk/mcs/class/System.Web/Test/System.Web/ChangeLog
   trunk/mcs/class/System.Web/Test/System.Web/HttpCookieTest.cs
Log:
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.


Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog     2007-08-27 12:16:31 UTC 
(rev 84871)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog     2007-08-27 12:50:59 UTC 
(rev 84872)
@@ -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

Modified: trunk/mcs/class/System.Web/System.Web/HttpCookie.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpCookie.cs 2007-08-27 12:16:31 UTC 
(rev 84871)
+++ trunk/mcs/class/System.Web/System.Web/HttpCookie.cs 2007-08-27 12:50:59 UTC 
(rev 84872)
@@ -243,7 +243,7 @@
 
                                        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 @@
                                        Clear();
                                        name = string.Empty;
                                }
-                               if (value == null)
-                                       value = string.Empty;
+//                             if (value == null)
+//                                     value = string.Empty;
 
                                base.Set (name, value);
                        }
                }
        }
-
 }

Modified: trunk/mcs/class/System.Web/Test/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web/ChangeLog        2007-08-27 
12:16:31 UTC (rev 84871)
+++ trunk/mcs/class/System.Web/Test/System.Web/ChangeLog        2007-08-27 
12:50:59 UTC (rev 84872)
@@ -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

Modified: trunk/mcs/class/System.Web/Test/System.Web/HttpCookieTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web/HttpCookieTest.cs        
2007-08-27 12:16:31 UTC (rev 84871)
+++ trunk/mcs/class/System.Web/Test/System.Web/HttpCookieTest.cs        
2007-08-27 12:50:59 UTC (rev 84872)
@@ -232,7 +232,6 @@
                }
 
                [Test] // bug #81333
-               [Category ("NotWorking")]
                public void ToStringTest ()
                {
                        HttpCookie cookie;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to