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:
parent
92700808eb
commit
988c9595c7
1 changed files with 1 additions and 1 deletions
|
@ -160,4 +160,4 @@ class Publisher(object):
|
|||
|
||||
|
||||
def get_content_type(filename):
|
||||
return mimetypes.guess_type(filename)[0]
|
||||
return mimetypes.guess_type(filename)[0] or 'application/octet-stream'
|
||||
|
|
Loading…
Reference in a new issue