diff --git a/test/WebSites/Microsoft.AspNet.Mvc.TestConfiguration/ErrorReporterMiddleware.cs b/test/WebSites/Microsoft.AspNet.Mvc.TestConfiguration/ErrorReporterMiddleware.cs index 6a946320dd..26337bd037 100644 --- a/test/WebSites/Microsoft.AspNet.Mvc.TestConfiguration/ErrorReporterMiddleware.cs +++ b/test/WebSites/Microsoft.AspNet.Mvc.TestConfiguration/ErrorReporterMiddleware.cs @@ -32,7 +32,7 @@ namespace Microsoft.AspNet.Mvc.TestConfiguration } catch (Exception exception) { - if (context.Response.HeadersSent) + if (context.Response.HasStarted) { throw; } @@ -48,4 +48,4 @@ namespace Microsoft.AspNet.Mvc.TestConfiguration } } } -} \ No newline at end of file +}