1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Merge pull request #5931 from ansavin/ticket/16367

[ticket/16367] Add charset to Content-Type response header in feed controller
This commit is contained in:
Marc Alexander
2020-04-23 21:58:18 +02:00

View File

@@ -386,8 +386,7 @@ class feed
));
$response = new Response($content);
$response->headers->set('Content-Type', 'application/atom+xml');
$response->setCharset('UTF-8');
$response->headers->set('Content-Type', 'application/atom+xml; charset=UTF-8');
$response->setLastModified(new \DateTime('@' . $feed_updated_time));
if (!empty($this->user->data['is_bot']))