mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-07-09 21:09:45 +02:00
Merge pull request #3453 from uniun/patch-1
RSS feed should be sent with charset=utf-8 header
This commit is contained in:
commit
7bacaa8c6b
|
@ -201,7 +201,7 @@ class RSSFeed extends ViewableData {
|
||||||
|
|
||||||
if(!headers_sent()) {
|
if(!headers_sent()) {
|
||||||
HTTP::add_cache_headers();
|
HTTP::add_cache_headers();
|
||||||
$response->addHeader("Content-Type", "application/rss+xml");
|
$response->addHeader("Content-Type", "application/rss+xml; charset=utf-8");
|
||||||
}
|
}
|
||||||
|
|
||||||
Config::inst()->update('SSViewer', 'source_file_comments', $prevState);
|
Config::inst()->update('SSViewer', 'source_file_comments', $prevState);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user