mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
force correct css mime type
fixes broken styling on machines with an incorrect mime type
This commit is contained in:
parent
9858ab3dbe
commit
63befa7c0c
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue