~cadence/crumpet

840407d0a91baf1a1f18456efbe70726c04d523c — Cadence Ember 10 months ago ff1fcea
Force mime type text/javascript for .js files
1 files changed, 3 insertions(+), 0 deletions(-)

M crumpet.py
M crumpet.py => crumpet.py +3 -0
@@ 1,5 1,6 @@
import cherrypy
import hashlib
import mimetypes
import os
import pathlib
import re


@@ 11,6 12,8 @@ import sys

content_host = "https://cadence.moe"

mimetypes.types_map[".js"] = "text/javascript" # serve correct type for javascript modules; mimetypes module has application/javascript normally

db = None
def init_database():
	global db