FIX: Use correct MIME type for theme exports (#8379)

This commit is contained in:
Dan Ungureanu
2019-11-20 17:19:16 +02:00
committed by GitHub
parent 3b5c214ac3
commit 555711ccb5

View File

@ -248,7 +248,7 @@ class Admin::ThemesController < Admin::AdminController
headers['Content-Length'] = File.size(file_path).to_s
send_data File.read(file_path),
filename: File.basename(file_path),
content_type: "application/x-gzip"
content_type: "application/zip"
ensure
exporter.cleanup!
end