Author: kostat
Date: 2008-01-22 04:12:52 -0500 (Tue, 22 Jan 2008)
New Revision: 93487

Modified:
   trunk/mcs/class/System.Web/System.Web/ChangeLog
   trunk/mcs/class/System.Web/System.Web/HttpResponse.cs
Log:
 move headers_sent initialization up to prevent additional trial to send 
headers if an exception is thrown

Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog     2008-01-22 08:59:38 UTC 
(rev 93486)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog     2008-01-22 09:12:52 UTC 
(rev 93487)
@@ -1,3 +1,8 @@
+2008-01-22  Konstantin Triger <[EMAIL PROTECTED]>
+
+       * HttpResponse.cs: move headers_sent initialization up to prevent 
additional
+               trial to send headers if an exception is thrown.
+
 2008-01-21  Konstantin Triger <[EMAIL PROTECTED]>
 
        * HttpRequest.cs: Form validation: ensure the collection is accessible 
after

Modified: trunk/mcs/class/System.Web/System.Web/HttpResponse.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpResponse.cs       2008-01-22 
08:59:38 UTC (rev 93486)
+++ trunk/mcs/class/System.Web/System.Web/HttpResponse.cs       2008-01-22 
09:12:52 UTC (rev 93487)
@@ -700,6 +700,8 @@
                        if (headers_sent)
                                return;
 
+                       headers_sent = true;
+
                        if (cached_response != null)
                                cached_response.SetHeaders (headers);
 
@@ -728,7 +730,6 @@
                                        header.SendContent (WorkerRequest);
                                }
                        }
-                       headers_sent = true;
                }
 
                internal void DoFilter (bool close)

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

Reply via email to