Author: mhabersack
Date: 2008-02-18 14:38:18 -0500 (Mon, 18 Feb 2008)
New Revision: 96097
Modified:
branches/mono-1-9/mcs/class/System.Web/System.Web/ChangeLog
branches/mono-1-9/mcs/class/System.Web/System.Web/HttpRuntime.cs
Log:
Backport of r96096
Modified: branches/mono-1-9/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- branches/mono-1-9/mcs/class/System.Web/System.Web/ChangeLog 2008-02-18
19:36:57 UTC (rev 96096)
+++ branches/mono-1-9/mcs/class/System.Web/System.Web/ChangeLog 2008-02-18
19:38:18 UTC (rev 96097)
@@ -1,3 +1,8 @@
+2008-02-18 Marek Habersack <[EMAIL PROTECTED]>
+
+ * HttpRuntime.cs: When app is offline, send status code 503
+ instead of 200. Fixes bug #357565
+
2008-02-07 Marek Habersack <[EMAIL PROTECTED]>
* HttpException.cs: more exception output compatibility changes to
Modified: branches/mono-1-9/mcs/class/System.Web/System.Web/HttpRuntime.cs
===================================================================
--- branches/mono-1-9/mcs/class/System.Web/System.Web/HttpRuntime.cs
2008-02-18 19:36:57 UTC (rev 96096)
+++ branches/mono-1-9/mcs/class/System.Web/System.Web/HttpRuntime.cs
2008-02-18 19:38:18 UTC (rev 96097)
@@ -323,6 +323,7 @@
response.Clear ();
response.ContentType = "text/html";
response.ExpiresAbsolute = DateTime.UtcNow;
+ response.StatusCode = 503;
response.TransmitFile (app_offline_file, true);
context.Request.ReleaseResources ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches