From a68403d09006af3e7f75aacb9e818ce3bcf60b13 Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Sat, 27 Oct 2018 17:26:42 -0700 Subject: Add application/x-typescript mime type support --- tools/http_server.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/http_server.py') 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: -- cgit v1.2.3