Skip to content

Commit e515583

Browse files
committed
Add error code pages support
1 parent ee1ab2b commit e515583

File tree

1 file changed

+1
-0
lines changed
  • images/DeKreyConsulting.StaticFileServer

1 file changed

+1
-0
lines changed

images/DeKreyConsulting.StaticFileServer/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
app.UseHttpsRedirection();
3838
app.UseDefaultFiles();
39+
app.UseStatusCodePagesWithReExecute("/{0}.html");
3940
app.UseCompressedStaticFiles(new StaticFileOptions
4041
{
4142
OnPrepareResponse = ctx =>

0 commit comments

Comments
 (0)