Skip to content

Commit 0fb4d06

Browse files
committed
getHeader should never return a non-string
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
1 parent 5df4092 commit 0fb4d06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Controller/Feed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function show() {
138138
'activities' => $activities,
139139
], '');
140140

141-
if ($this->request->getHeader('accept') !== null && stristr($this->request->getHeader('accept'), 'application/rss+xml')) {
141+
if (stristr($this->request->getHeader('accept'), 'application/rss+xml')) {
142142
$response->addHeader('Content-Type', 'application/rss+xml');
143143
} else {
144144
$response->addHeader('Content-Type', 'text/xml; charset=UTF-8');

0 commit comments

Comments
 (0)