From 988c9595c722dc4e65e71bc561e96975c0804dda Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Fri, 14 Oct 2016 09:55:45 -0400 Subject: [PATCH] Add default MIME type during publication Needed because the new JSON schema enforces that the content type is a string (not null). --- lbrynet/lbrynet_daemon/Publisher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/Publisher.py b/lbrynet/lbrynet_daemon/Publisher.py index 7a6e73ee3..1836befbf 100644 --- a/lbrynet/lbrynet_daemon/Publisher.py +++ b/lbrynet/lbrynet_daemon/Publisher.py @@ -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'