mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05: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:])
|
newPath = os.path.join(_exportFolder, path[len(targetPath)+1:])
|
||||||
return newPath
|
return newPath
|
||||||
return path
|
return path
|
||||||
|
|
||||||
|
# work around Windows machines with incorrect mime type
|
||||||
|
RequestHandler.extensions_map['.css'] = "text/css"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue