update command

This commit is contained in:
Yuta
2011-03-20 03:45:58 +09:00
parent c7c4ab09c8
commit 3a9cfe074e
6 changed files with 81 additions and 24 deletions
+3 -3
View File
@@ -54,9 +54,9 @@ def is_html(content_type):
return False
def is_gzip(content_type, filename):
if (content_type == 'application/x-gzip'
or tarfile.is_tarfile(filename)
or splitext(filename)[1].lower() in ('.tar', '.tar.gz', '.tar.bz2', '.tgz', '.tbz')):
if(content_type == 'application/x-gzip'
or tarfile.is_tarfile(filename)
or splitext(filename)[1].lower() in ('.tar', '.tar.gz', '.tgz')):
return True
return False