Skip to content

Commit 523f198

Browse files
authored
Merge pull request #328 from bollwyvl/add-wasm-mime
Add wasm mime override
2 parents 9286b71 + c02adbe commit 523f198

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ __pycache__
2626
.DS_Store
2727
\#*#
2828
.#*
29-
.coverage
29+
.coverage*
3030
.pytest_cache
3131
src
3232

jupyter_server/serverapp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,8 @@ def init_mime_overrides(self):
15191519
# ensure css, js are correct, which are required for pages to function
15201520
mimetypes.add_type('text/css', '.css')
15211521
mimetypes.add_type('application/javascript', '.js')
1522+
# for python <3.8
1523+
mimetypes.add_type('application/wasm', '.wasm')
15221524

15231525
def shutdown_no_activity(self):
15241526
"""Shutdown server on timeout when there are no kernels or terminals."""

0 commit comments

Comments
 (0)