React to IHeaderDictionary API changes.

This commit is contained in:
Chris R 2015-08-31 20:29:36 -07:00
parent d9b3ea2a54
commit 561c997cb2
1 changed files with 6 additions and 6 deletions

View File

@ -142,9 +142,9 @@ namespace Microsoft.AspNet.Authentication.OpenIdConnect
Response.ContentType = "text/html;charset=UTF-8";
// Emit Cache-Control=no-cache to prevent client caching.
Response.Headers.Set(HeaderNames.CacheControl, "no-cache");
Response.Headers.Set(HeaderNames.Pragma, "no-cache");
Response.Headers.Set(HeaderNames.Expires, "-1");
Response.Headers[HeaderNames.CacheControl] = "no-cache";
Response.Headers[HeaderNames.Pragma] = "no-cache";
Response.Headers[HeaderNames.Expires] = "-1";
await Response.Body.WriteAsync(buffer, 0, buffer.Length);
}
@ -299,9 +299,9 @@ namespace Microsoft.AspNet.Authentication.OpenIdConnect
Response.ContentType = "text/html;charset=UTF-8";
// Emit Cache-Control=no-cache to prevent client caching.
Response.Headers.Set(HeaderNames.CacheControl, "no-cache");
Response.Headers.Set(HeaderNames.Pragma, "no-cache");
Response.Headers.Set(HeaderNames.Expires, "-1");
Response.Headers[HeaderNames.CacheControl] = "no-cache";
Response.Headers[HeaderNames.Pragma] = "no-cache";
Response.Headers[HeaderNames.Expires] = "-1";
await Response.Body.WriteAsync(buffer, 0, buffer.Length);