Author: gonzalo
Date: 2005-04-11 08:40:44 -0400 (Mon, 11 Apr 2005)
New Revision: 42783

Modified:
   trunk/mcs/class/System/System.Net/ChangeLog
   trunk/mcs/class/System/System.Net/HttpWebRequest.cs
Log:
2005-04-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * HttpWebRequest.cs: ensure we read everything before redirecting.



Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2005-04-11 11:09:07 UTC (rev 
42782)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2005-04-11 12:40:44 UTC (rev 
42783)
@@ -1,5 +1,9 @@
 2005-04-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
+       * HttpWebRequest.cs: ensure we read everything before redirecting.
+
+2005-04-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
        * WebConnectionStream.cs: provide a default callback when doing async.
        read/write and waiting for a timeout so that the callback sets the
        event and we don't block forever. Fixes bug #74539 take 3.

Modified: trunk/mcs/class/System/System.Net/HttpWebRequest.cs
===================================================================
--- trunk/mcs/class/System/System.Net/HttpWebRequest.cs 2005-04-11 11:09:07 UTC 
(rev 42782)
+++ trunk/mcs/class/System/System.Net/HttpWebRequest.cs 2005-04-11 12:40:44 UTC 
(rev 42783)
@@ -1042,6 +1042,10 @@
                                                r.SetCompleted (false, 
webResponse);
                                                r.DoCallback ();
                                        } else {
+                                               if (webResponse != null) {
+                                                       webResponse.Close ();
+                                                       webResponse = null;
+                                               }
                                                haveResponse = false;
                                                webResponse = null;
                                                r.Reset ();

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

Reply via email to