diff --git a/lib/Controller/Feed.php b/lib/Controller/Feed.php index eb72675b3..f773630b7 100644 --- a/lib/Controller/Feed.php +++ b/lib/Controller/Feed.php @@ -138,7 +138,7 @@ public function show() { 'activities' => $activities, ], ''); - if ($this->request->getHeader('accept') !== null && stristr($this->request->getHeader('accept'), 'application/rss+xml')) { + if (stristr($this->request->getHeader('accept'), 'application/rss+xml')) { $response->addHeader('Content-Type', 'application/rss+xml'); } else { $response->addHeader('Content-Type', 'text/xml; charset=UTF-8');