From cb4f0ef50819321b0efa278a3e2c255c14d7bfe5 Mon Sep 17 00:00:00 2001 From: Julien Turbide Date: Fri, 23 Feb 2024 23:40:27 -0500 Subject: [PATCH] bug fix --- src/Mvc/Controller/Download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mvc/Controller/Download.php b/src/Mvc/Controller/Download.php index 988ee492..469e86d3 100644 --- a/src/Mvc/Controller/Download.php +++ b/src/Mvc/Controller/Download.php @@ -35,7 +35,7 @@ public function getContentType(?array $params = null): string { $params ??= $this->getParams(); - $contentType = strtolower($params['contentType'] ?? $params['content-type'] ?? $this->request->getContentType()); + $contentType = strtolower($params['contentType'] ?? $params['content-type'] ?? $this->request->getContentType() ?? ''); switch ($contentType) { case 'html':