From 857584a9295142b7262a4d8dd8500f862e3b75b2 Mon Sep 17 00:00:00 2001
From: i7-8700 <1281261856@qq.com>
Date: Wed, 27 Oct 2021 11:33:30 +0800
Subject: [PATCH] fix "MIME type ('text/plain') is not executable" on windows

---
 cps/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cps/__init__.py b/cps/__init__.py
index 771abda7..e213fd5e 100644
--- a/cps/__init__.py
+++ b/cps/__init__.py
@@ -66,6 +66,8 @@ mimetypes.add_type('application/mp4', '.m4a')
 mimetypes.add_type('application/mp4', '.m4b')
 mimetypes.add_type('application/ogg', '.ogg')
 mimetypes.add_type('application/ogg', '.oga')
+mimetypes.add_type('text/css', '.css')
+mimetypes.add_type('text/javascript; charset=UTF-8', '.js')
 
 app = Flask(__name__)
 app.config.update(