Author: gonzalo
Date: 2006-11-13 16:19:09 -0500 (Mon, 13 Nov 2006)
New Revision: 67792

Modified:
   trunk/mcs/class/System/System.Net/ChangeLog
   trunk/mcs/class/System/System.Net/HttpWebResponse.cs
Log:
2006-11-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * HttpWebResponse.cs: cookies are actually added to the request
        container if any. Fixes bug #79821.



Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2006-11-13 21:18:21 UTC (rev 
67791)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2006-11-13 21:19:09 UTC (rev 
67792)
@@ -1,3 +1,8 @@
+2006-11-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * HttpWebResponse.cs: cookies are actually added to the request
+       container if any. Fixes bug #79821.
+
 2006-11-02  Michael Hutchinson  <[EMAIL PROTECTED]>
 
        * WebRequest.cs: more closely follow MS behaviour: use system settings 

Modified: trunk/mcs/class/System/System.Net/HttpWebResponse.cs
===================================================================
--- trunk/mcs/class/System/System.Net/HttpWebResponse.cs        2006-11-13 
21:18:21 UTC (rev 67791)
+++ trunk/mcs/class/System/System.Net/HttpWebResponse.cs        2006-11-13 
21:19:09 UTC (rev 67792)
@@ -52,6 +52,7 @@
                string statusDescription;
                long contentLength = -1;
                string contentType;
+               CookieContainer cookie_container;
 
                bool disposed = false;
                Stream stream;
@@ -68,6 +69,7 @@
                        statusDescription = data.StatusDescription;
                        stream = data.stream;
                        if (container != null) {
+                               this.cookie_container = container;      
                                FillCookies ();
                        }
                }
@@ -415,6 +417,8 @@
                                cookie.Domain = uri.Host;
 
                        cookieCollection.Add (cookie);
+                       if (cookie_container != null)
+                               cookie_container.Add (uri, cookie);
                }
 
                void SetCookie2 (string cookies_str)

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

Reply via email to