mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
FIX: Use correct MIME type for theme exports (#8379)
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user