Skip to content

Commit

Permalink
is
Browse files Browse the repository at this point in the history
  • Loading branch information
nopara73 committed Oct 29, 2024
1 parent 3f1699a commit f1e34c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class HtmlInjectionMiddleware(RequestDelegate next)
public async Task Invoke(HttpContext context)
{
var path = context.Request.Path.Value;
if (path == "/" || path?.EndsWith(".html") == true)
if (path == "/" || path?.EndsWith(".html") is true)
{
string filePath;

Expand Down

0 comments on commit f1e34c7

Please sign in to comment.