Reacting to ApplicationServices removal from HttpContext

This commit is contained in:
John Luo 2015-11-19 17:42:50 -08:00
parent 0708c34331
commit 888f1523fe
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ namespace Microsoft.AspNet.StaticFiles
if (_htmlEncoder == null)
{
_htmlEncoder = context.ApplicationServices.GetHtmlEncoder();
_htmlEncoder = context.RequestServices.GetHtmlEncoder();
}
context.Response.ContentType = TextHtmlUtf8;