force correct css mime type

fixes broken styling on machines with an incorrect mime type
This commit is contained in:
Damien Elmes 2017-09-07 14:52:46 +10:00
parent 9858ab3dbe
commit 63befa7c0c

View file

@ -107,3 +107,6 @@ class RequestHandler(http.server.SimpleHTTPRequestHandler):
newPath = os.path.join(_exportFolder, path[len(targetPath)+1:])
return newPath
return path
# work around Windows machines with incorrect mime type
RequestHandler.extensions_map['.css'] = "text/css"