forked from LBRYCommunity/lbry-sdk
Update mime_types.py
This commit is contained in:
parent
673b958020
commit
2a82ff7cc5
1 changed files with 1 additions and 1 deletions
|
@ -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()}'
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue