diff --git a/lib/EventListener/FileEventsListener.php b/lib/EventListener/FileEventsListener.php index d03e1ee7..36878a79 100644 --- a/lib/EventListener/FileEventsListener.php +++ b/lib/EventListener/FileEventsListener.php @@ -108,7 +108,7 @@ public function generateBody(Exception $ex): mixed { private function acceptHtml(): bool { foreach (explode(',', $this->request->getHeader('Accept')) as $part) { $subparts = explode(';', $part); - if (str_ends_with($subparts[0], '/html')) { + if (str_ends_with($subparts[0], 'text/html')) { return true; } }