Add default MIME type during publication

Needed because the new JSON schema enforces that the content type is a
string (not null).
This commit is contained in:
Alex Liebowitz 2016-10-14 09:55:45 -04:00
parent 92700808eb
commit 988c9595c7

View file

@ -160,4 +160,4 @@ class Publisher(object):
def get_content_type(filename): def get_content_type(filename):
return mimetypes.guess_type(filename)[0] return mimetypes.guess_type(filename)[0] or 'application/octet-stream'