From 2a82ff7cc54f7a5da6304ee669c2a9a3e98dc71a Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Wed, 20 Feb 2019 18:41:27 -0500 Subject: [PATCH] Update mime_types.py --- lbrynet/extras/daemon/mime_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/extras/daemon/mime_types.py b/lbrynet/extras/daemon/mime_types.py index 5af8c1eef..88aa7077f 100644 --- a/lbrynet/extras/daemon/mime_types.py +++ b/lbrynet/extras/daemon/mime_types.py @@ -155,6 +155,6 @@ types_map = { def guess_media_type(path): _, ext = os.path.splitext(path) return types_map.get( - ext, + ext.strip().lower(), 'application/octet-stream' if not (ext and ext[1:].strip()) else f'application/x-ext-{ext[1:].strip().lower()}' )