bug #4601: allow both old and new gzip mimetype

This commit is contained in:
Javi Fontan committed 2016-06-27 18:05:22 +02:00
1 parent 02c6d1bb86
commit 08d674fe43
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ def needs_unpack?(file)
end
type = get_type(file_path)
type.gsub!(%r{^application/x-}, '')
type.gsub!(%r{^application/(x-)?}, '')
unpack = %w{bzip2 gzip tar}.include?(type)
temp.unlink