mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
bug #4601: allow both old and new gzip mimetype
This commit is contained in:
1 parent
02c6d1bb86
commit
08d674fe43
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user