Downloading CSS and HTML Customizations export fails

This issue was specific to Chrome/Chromium browser.

Chrome browser was not including HTTP_ACCEPT header when requesting file download. I fixed this issue by removing download attribute (from anchor tag) so now Chrome is making download request with HTTP_ACCEPT header included. Verified that download is working fine on Firefox and Safari as well.

https://github.com/discourse/discourse/commit/dfd5b06c82ab30632ba6fdef224f8971eab0a44e

5 Likes