Skip to content

Commit

Permalink
Merge pull request #16 from open-runtimes/fix-uninitialized-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldiron authored Sep 5, 2023
2 parents c4e02c1 + d28f2fd commit d2d44f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d2d44f5

Please sign in to comment.