From a77902ec2aac763f0385bb9f91c7614d48feada5 Mon Sep 17 00:00:00 2001 From: sminnee Date: Sun, 26 Apr 2009 23:03:56 +0000 Subject: [PATCH] BUGFIX: Fix static publisher rendering of sitemap.xml --- code/GoogleSitemap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/GoogleSitemap.php b/code/GoogleSitemap.php index 4001f55..59f3206 100755 --- a/code/GoogleSitemap.php +++ b/code/GoogleSitemap.php @@ -128,7 +128,7 @@ class GoogleSitemap extends Controller { SSViewer::set_source_file_comments(false); // We need to override the default content-type 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. return array();