elementor / static-html-output

Static HTML Output Plugin for WordPress
https://statichtmloutput.com
The Unlicense
124 stars 33 forks source link

Can I change the content-type of files deployed on s3 #126

Open ichiragshah opened 4 years ago

ichiragshah commented 4 years ago

I want to change the content-type of sitemap.xml to text/xml. By default, it goes application/octet-stream and get downloaded.

Screenshot 2020-07-23 at 12 45 05 PM

How can I make sure it's always text/xml?

john-shaffer commented 4 years ago

Looks like in MimeTypes.php, you need something like this around line 14:

$wp_mime_types['xml'] = 'text/xml; charset=UTF-8';