diff --git a/app/http.php b/app/http.php index 55ab1e5..877df8b 100644 --- a/app/http.php +++ b/app/http.php @@ -305,7 +305,7 @@ function logError(Throwable $error, string $action, ?Logger $logger, Utopia\Rout $ch = \curl_init(); - $$responseHeaders = []; + $responseHeaders = []; \curl_setopt($ch, CURLOPT_URL, $hostname . $request->getURI()); \curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $request->getMethod()); @@ -376,7 +376,7 @@ function logError(Throwable $error, string $action, ?Logger $logger, Utopia\Rout $hostname = $option->getState('hostname') ?? ''; $result = $proxyRequest($hostname); - $headers = $result['headers'] ?? []; + $headers = $result['headers']; foreach ($headers as $key => $value) { $response->addHeader($key, $value);