Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jturbide committed Feb 24, 2024
1 parent 2dffdf4 commit cb4f0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mvc/Controller/Download.php
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit cb4f0ef

Please sign in to comment.