Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit faf5a18

Browse files
committed
If filename ends with .html, handle as html
1 parent f4d567b commit faf5a18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎server.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ async def handle(request):
119119
return web.Response(status=404)
120120
if os.path.isdir(os.path.normpath(filename)):
121121
return directory_response(filename)
122+
if filename.endswith('.html'):
123+
return html_response(filename)
122124
filetype = mimetypes.guess_type(filename)[0]
123125
if not filetype:
124126
filetype = filetype_fallback(filename)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /