1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

bug #4601: allow both old and new gzip mimetype

This commit is contained in:
Javi Fontan 2016-06-27 18:05:22 +02:00
parent 02c6d1bb86
commit 08d674fe43

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