FIX: Use correct MIME type for theme exports (#8379)
This commit is contained in:
parent
3b5c214ac3
commit
555711ccb5
|
@ -248,7 +248,7 @@ class Admin::ThemesController < Admin::AdminController
|
||||||
headers['Content-Length'] = File.size(file_path).to_s
|
headers['Content-Length'] = File.size(file_path).to_s
|
||||||
send_data File.read(file_path),
|
send_data File.read(file_path),
|
||||||
filename: File.basename(file_path),
|
filename: File.basename(file_path),
|
||||||
content_type: "application/x-gzip"
|
content_type: "application/zip"
|
||||||
ensure
|
ensure
|
||||||
exporter.cleanup!
|
exporter.cleanup!
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue