Reacting to ApplicationServices removal from HttpContext
This commit is contained in:
parent
0708c34331
commit
888f1523fe
|
|
@ -39,7 +39,7 @@ namespace Microsoft.AspNet.StaticFiles
|
||||||
|
|
||||||
if (_htmlEncoder == null)
|
if (_htmlEncoder == null)
|
||||||
{
|
{
|
||||||
_htmlEncoder = context.ApplicationServices.GetHtmlEncoder();
|
_htmlEncoder = context.RequestServices.GetHtmlEncoder();
|
||||||
}
|
}
|
||||||
|
|
||||||
context.Response.ContentType = TextHtmlUtf8;
|
context.Response.ContentType = TextHtmlUtf8;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue