Fix content type header

This commit is contained in:
Matej Bačo
2025-09-03 18:04:58 +02:00
parent f6308b3477
commit 5c5c4e432f
+1 -1
View File
@@ -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;
}