Closed lopugit closed 2 years ago
I've investigated this a bit and found that no matter what $response->content
is set to in XmlController.php
it always adds spaces at the start of the XML response. Is this an issue with \Craft::$app->getResponse();
?
Turned out to be some leading spaces added before a <?php tag in the routes file
Description
sitemap.xml file is being generated with spaces at the start of the file making it an invalid XML document.
Visit https://sport.unimelb.edu.au/sitemap.xml to see, and view source
Steps to reproduce
Additional info