From 5c5c4e432f869bbb738baeeeef54aa75f35eb0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 3 Sep 2025 18:04:58 +0200 Subject: [PATCH] Fix content type header --- app/controllers/general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index b4ad7917cd..50d56ff9fd 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -710,7 +710,7 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw $contentType = 'text/plain'; foreach ($executionResponse['headers'] as $name => $values) { if (\strtolower($name) === 'content-type') { - $contentType = $values[0] ?? 'text/plain'; + $contentType = \is_array($values) ? $values[0] : $values; continue; }