Open ichiragshah opened 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.
How can I make sure it's always text/xml?
Looks like in MimeTypes.php, you need something like this around line 14:
$wp_mime_types['xml'] = 'text/xml; charset=UTF-8';
I want to change the content-type of sitemap.xml to text/xml. By default, it goes application/octet-stream and get downloaded.
How can I make sure it's always text/xml?