diff --git a/app/console b/app/console index 9adb94cced..1d75b39555 160000 --- a/app/console +++ b/app/console @@ -1 +1 @@ -Subproject commit 9adb94cced2a7a41774d0956295d1a62234b648f +Subproject commit 1d75b39555221479ff92d54ecf8b452bfd503f5e diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index c3c8b335c2..2a39985567 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1427,7 +1427,7 @@ App::post('/v1/functions/:functionId/executions') $headersFiltered = []; foreach ($headers as $key => $value) { - if(\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) { + if (\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) { $headersFiltered[] = [ 'key' => $key, 'value' => $value ]; } } @@ -1532,7 +1532,7 @@ App::post('/v1/functions/:functionId/executions') $headersFiltered = []; foreach ($executionResponse['headers'] as $key => $value) { - if(\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) { + if (\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) { $headersFiltered[] = [ 'key' => $key, 'value' => $value ]; } } diff --git a/app/controllers/general.php b/app/controllers/general.php index 95329ccfc0..3153a4153a 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -169,7 +169,7 @@ App::init() /* * Appwrite Router */ - + $host = $request->getHostname() ?? ''; $mainDomain = App::getEnv('_APP_DOMAIN', ''); // Only run Router when external domain diff --git a/app/workers/functions.php b/app/workers/functions.php index 63a52633db..f0b191efcb 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -82,13 +82,13 @@ Server::setResource('execute', function () { $headers['x-appwrite-event'] = $event ?? ''; $headers['x-appwrite-user-id'] = $user->getId() ?? ''; $headers['x-appwrite-user-jwt'] = $jwt ?? ''; - + /** Create execution or update execution status */ $execution = $dbForProject->getDocument('executions', $executionId ?? ''); if ($execution->isEmpty()) { $headersFiltered = []; foreach ($headers as $key => $value) { - if(\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) { + if (\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) { $headersFiltered[] = [ 'key' => $key, 'value' => $value ]; } } @@ -189,7 +189,7 @@ Server::setResource('execute', function () { $headersFiltered = []; foreach ($executionResponse['headers'] as $key => $value) { - if(\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) { + if (\in_array($key, FUNCTION_WHITELIST_HEADERS_REQUEST)) { $headersFiltered[] = [ 'key' => $key, 'value' => $value ]; } }