Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Jan 31, 2025
1 parent ff66dd8 commit 1b7b1ae
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions system/HTTP/Cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,9 @@ public function hasResponseHeaders(RequestInterface $request, ResponseInterface
return false;
}

if ($this->config['exposedHeaders'] !== [] && (! $response->hasHeader('Access-Control-Expose-Headers') || ! str_contains(
return ! ($this->config['exposedHeaders'] !== [] && (! $response->hasHeader('Access-Control-Expose-Headers') || ! str_contains(
$response->getHeaderLine('Access-Control-Expose-Headers'),
implode(', ', $this->config['exposedHeaders']),
))) {
return false;
}

return true;
)));
}
}

0 comments on commit 1b7b1ae

Please sign in to comment.