diff options
Diffstat (limited to 'tools/http_server.py')
-rwxr-xr-x | tools/http_server.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/http_server.py b/tools/http_server.py index 6cf997b86..7c4b1fe25 100755 --- a/tools/http_server.py +++ b/tools/http_server.py @@ -58,6 +58,12 @@ class ContentTypeHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): return "application/x-javascript" if "form_urlencoded" in path: return "application/x-www-form-urlencoded" + if "no_ext" in path: + return "text/typescript" + if "unknown_ext" in path: + return "text/typescript" + if "mismatch_ext" in path: + return "text/javascript" return SimpleHTTPServer.SimpleHTTPRequestHandler.guess_type(self, path) |