diff --git a/lbrynet/extras/daemon/mime_types.py b/lbrynet/extras/daemon/mime_types.py index e2c9667cd..844f61169 100644 --- a/lbrynet/extras/daemon/mime_types.py +++ b/lbrynet/extras/daemon/mime_types.py @@ -153,4 +153,5 @@ types_map = { def guess_media_type(path): _, ext = os.path.splitext(path) - return types_map.get(ext, f'application/x-ext-{ext}') + default = f'application/x-ext-{ext}' if ext else 'application/octet-stream' + return types_map.get(ext, default)