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:
parent
02c6d1bb86
commit
08d674fe43
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user