diff --git a/src/Microsoft.AspNet.Authentication/AuthenticationHandler.cs b/src/Microsoft.AspNet.Authentication/AuthenticationHandler.cs index d3e2ff9a4e..fd6950ff5b 100644 --- a/src/Microsoft.AspNet.Authentication/AuthenticationHandler.cs +++ b/src/Microsoft.AspNet.Authentication/AuthenticationHandler.cs @@ -76,7 +76,7 @@ namespace Microsoft.AspNet.Authentication RegisterAuthenticationHandler(); - Response.OnSendingHeaders(OnSendingHeaderCallback, this); + Response.OnResponseStarting(OnSendingHeaderCallback, this); await InitializeCoreAsync();