Use lowercase filename for content type guess

This commit is contained in:
shortcutme 2019-03-29 02:30:43 +01:00
parent b5b0626251
commit 52e28eefce
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -173,6 +173,7 @@ class UiRequest(object):
# Get mime by filename
def getContentType(self, file_name):
file_name = file_name.lower()
content_type = mimetypes.guess_type(file_name)[0]
if content_type: