[utils] Improve mimetype2ext

This commit is contained in:
Sergey M․ 2016-09-02 22:57:48 +07:00
parent 5e9e3d0f6b
commit 6562d34a8c
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D
2 changed files with 10 additions and 1 deletions

View file

@ -2148,7 +2148,7 @@ def mimetype2ext(mt):
return ext
_, _, res = mt.rpartition('/')
res = res.lower()
res = res.split(';')[0].strip().lower()
return {
'3gpp': '3gp',