Skip to content

Commit e65cc77

Browse files
authored
fix that may work for 3.6 + incomplete system mime.types
1 parent adb740e commit e65cc77

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

browser-ui/server.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/usr/bin/env python
22

33
import mimetypes
4-
mimetypes.add_type(".wasm", "application/wasm")
4+
5+
mimetypes.init()
6+
if not ".wasm" in mimetypes.types_map:
7+
mimetypes.types_map[".wasm"] = "application/wasm"
58

69
import argparse
710
from http import server

0 commit comments

Comments
 (0)