fix url_info(): allow unknown MIME type

This commit is contained in:
Mort Yao 2012-09-01 17:13:32 +02:00
parent ff7ef4c09a
commit ac16f1b60f

View File

@ -106,8 +106,11 @@ def url_info(url):
'video/webm': 'webm',
'video/x-flv': 'flv'
}
assert type in mapping, type
#assert type in mapping, type
if type in mapping:
ext = mapping[type]
else:
ext = None
size = int(headers['content-length'])