From dd112f2c521252c0e5648450604a0f7487e7b3e4 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 12 Jan 2018 14:53:25 +0100 Subject: [PATCH] getHeader should never return a non-string Signed-off-by: Morris Jobke --- lib/Controller/Feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');