We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54006eb commit 5b45b6eCopy full SHA for 5b45b6e
1 file changed
src/CorsService.php
@@ -211,7 +211,7 @@ public function varyHeader(Response $response, $header): Response
211
{
212
$vary = $response->getVary();
213
if (!in_array($header, $vary)) {
214
- if (count($response->headers->all('Vary')) == 1) {
+ if (count($response->headers->all('Vary')) === 1) {
215
$response->setVary($response->headers->get('Vary') . ', ' . $header, true);
216
} else {
217
$response->setVary($header, false);
0 commit comments