1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 16:22:22 +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
commit a12b70468f
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

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']))