Author: gonzalo
Date: 2005-03-30 17:13:52 -0500 (Wed, 30 Mar 2005)
New Revision: 42396

Modified:
   branches/mono-1-0/mcs/class/System/System.Net/ChangeLog
   branches/mono-1-0/mcs/class/System/System.Net/HttpWebResponse.cs
   branches/mono-1-0/mcs/class/System/System.Net/WebConnection.cs
Log:
from HEAD

Modified: branches/mono-1-0/mcs/class/System/System.Net/ChangeLog
===================================================================
--- branches/mono-1-0/mcs/class/System/System.Net/ChangeLog     2005-03-30 
22:10:17 UTC (rev 42395)
+++ branches/mono-1-0/mcs/class/System/System.Net/ChangeLog     2005-03-30 
22:13:52 UTC (rev 42396)
@@ -1,3 +1,14 @@
+2005-03-30 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * WebConnection.cs: we don't need to trigger the next queued request
+       until the response is closed.
+
+2005-03-29  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * HttpWebResponse.cs: Handle quotations in the cookies values, per
+       the spec http://www.faqs.org/rfcs/rfc2109.html, it is allowed to
+       have quotations.
+
 2005-03-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * BasicClient.cs:

Modified: branches/mono-1-0/mcs/class/System/System.Net/HttpWebResponse.cs
===================================================================
--- branches/mono-1-0/mcs/class/System/System.Net/HttpWebResponse.cs    
2005-03-30 22:10:17 UTC (rev 42395)
+++ branches/mono-1-0/mcs/class/System/System.Net/HttpWebResponse.cs    
2005-03-30 22:13:52 UTC (rev 42396)
@@ -477,11 +477,24 @@
                        while (k < length && Char.IsWhiteSpace (header [k]))
                                k++;
 
-                       int begin = k;
-                       while (k < length && header [k] != ';')
-                               k++;
+                       int begin;
+                       if (header [k] == '"'){
+                               int j;
+                               begin = ++k;
 
-                       pos = k;
+                               while (k < length && header [k] != '"')
+                                       k++;
+
+                               for (j = k; j < length && header [j] != ';'; 
j++)
+                                       ;
+                               pos = j;
+                       } else {
+                               begin = k;
+                               while (k < length && header [k] != ';')
+                                       k++;
+                               pos = k;
+                       }
+                               
                        return header.Substring (begin, k - begin).Trim ();
                }
        }

Modified: branches/mono-1-0/mcs/class/System/System.Net/WebConnection.cs
===================================================================
--- branches/mono-1-0/mcs/class/System/System.Net/WebConnection.cs      
2005-03-30 22:10:17 UTC (rev 42395)
+++ branches/mono-1-0/mcs/class/System/System.Net/WebConnection.cs      
2005-03-30 22:13:52 UTC (rev 42396)
@@ -375,7 +375,6 @@
                        if (!ExpectContent (data.StatusCode))
                                stream.ForceCompletion ();
 
-                       stream.CheckComplete ();
                        data.request.SetResponseData (data);
                }
 

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

Reply via email to