[eglib] make g_mkdir_with_parents work for paths not ending in /
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel.Channels.Http / HttpContextInfo.cs
index d86ee0ce17aed908dcf96f60c03fef42211536db..6dad9d9e807e7fd29f566aa7c2ea25d7d1bef6b6 100644 (file)
@@ -325,12 +325,15 @@ namespace System.ServiceModel.Channels.Http
                
                public override void Abort ()
                {
-                       res.Close ();
+                       res.End ();
                }
                
                public override void Close ()
                {
-                       res.Close ();
+                       // We must not close the response here, as everything is taking place in the
+                       // HttpApplication's pipeline context and the output is sent to the client
+                       // _after_ we leave this method. Closing the response here will stop any
+                       // output from reaching the client.
                }
                
                public override void SetLength (long value)