mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
BUGFIX: Fix static publisher rendering of sitemap.xml
This commit is contained in:
parent
bf5b9a56a9
commit
a77902ec2a
@ -128,7 +128,7 @@ class GoogleSitemap extends Controller {
|
|||||||
SSViewer::set_source_file_comments(false);
|
SSViewer::set_source_file_comments(false);
|
||||||
// We need to override the default content-type
|
// We need to override the default content-type
|
||||||
ContentNegotiator::disable();
|
ContentNegotiator::disable();
|
||||||
header('Content-type: application/xml; charset="utf-8"');
|
$this->getResponse()->addHeader('Content-Type', 'application/xml; charset="utf-8"');
|
||||||
|
|
||||||
// But we want to still render.
|
// But we want to still render.
|
||||||
return array();
|
return array();
|
||||||
|
Loading…
Reference in New Issue
Block a user