From 900001efaf267fef28c61cab6065b7d5c5e22de2 Mon Sep 17 00:00:00 2001 From: uh_wot <3631986-uh_wot@users.noreply.gitlab.com> Date: Wed, 6 May 2020 11:58:25 +0200 Subject: [PATCH] added workaround for MIME type error in certain Windows installs --- server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.py b/server.py index d6d298a..3b64422 100644 --- a/server.py +++ b/server.py @@ -12,6 +12,11 @@ from deemix.api.deezer import Deezer from deemix.app.MessageInterface import MessageInterface from deemix.utils import localpaths +# Workaround for MIME type error in certain Windows installs +# https://github.com/pallets/flask/issues/1045#issuecomment-42202749 +import mimetypes +mimetypes.add_type('text/css', '.css') +mimetypes.add_type('text/javascript', '.js') class CustomFlask(Flask): jinja_options = Flask.jinja_options.copy()