Author: gonzalo
Date: 2005-04-09 16:03:35 -0400 (Sat, 09 Apr 2005)
New Revision: 42743
Modified:
trunk/mcs/class/System/System.Net/ChangeLog
trunk/mcs/class/System/System.Net/HttpWebRequest.cs
Log:
2005-04-09 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* HttpWebRequest.cs: throw the exception if we got an error, as now
it's catched in the redirection handling code.
Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2005-04-09 20:01:17 UTC (rev
42742)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2005-04-09 20:03:35 UTC (rev
42743)
@@ -1,3 +1,8 @@
+2005-04-09 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * HttpWebRequest.cs: throw the exception if we got an error, as now
+ it's catched in the redirection handling code.
+
2005-04-08 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* HttpWebRequest.cs: moved redirection handling to a proper place.
Modified: trunk/mcs/class/System/System.Net/HttpWebRequest.cs
===================================================================
--- trunk/mcs/class/System/System.Net/HttpWebRequest.cs 2005-04-09 20:01:17 UTC
(rev 42742)
+++ trunk/mcs/class/System/System.Net/HttpWebRequest.cs 2005-04-09 20:03:35 UTC
(rev 42743)
@@ -685,6 +685,9 @@
Abort ();
throw new WebException("The request timed out",
WebExceptionStatus.Timeout);
}
+
+ if (result.GotException)
+ throw result.Exception;
return result.Response;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches