Always return lower cased content type

This commit is contained in:
shortcutme 2018-09-30 21:54:50 +02:00
parent 15c09a0f03
commit 9fee86df59
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -165,6 +165,9 @@ class UiRequest(object):
def getContentType(self, file_name):
content_type = mimetypes.guess_type(file_name)[0]
if content_type:
content_type = content_type.lower()
if file_name.endswith(".css"): # Force correct css content type
content_type = "text/css"