summaryrefslogtreecommitdiff
path: root/tools/http_server.py
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2018-10-27 17:26:42 -0700
committerRyan Dahl <ry@tinyclouds.org>2018-10-28 11:18:53 -0700
commita68403d09006af3e7f75aacb9e818ce3bcf60b13 (patch)
tree26ba8f95660697ef9d20a6f4d6fdccf327444f22 /tools/http_server.py
parentda959e8c878382ce3417ab61db8ccf1ae9a660fa (diff)
Add application/x-typescript mime type support
Diffstat (limited to 'tools/http_server.py')
-rwxr-xr-xtools/http_server.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/http_server.py b/tools/http_server.py
index 011f3c31a..065635c6f 100755
--- a/tools/http_server.py
+++ b/tools/http_server.py
@@ -22,6 +22,8 @@ class ContentTypeHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
return "video/vnd.dlna.mpeg-tts"
if ".t3." in path:
return "video/mp2t"
+ if ".t4." in path:
+ return "application/x-typescript"
if ".j1." in path:
return "text/javascript"
if ".j2." in path: