From 1adf529d7f2ea460cc5b03180fd8a3ab2488abeb Mon Sep 17 00:00:00 2001 From: Valentin Clavreul Date: Fri, 13 Oct 2023 11:14:54 +0200 Subject: [PATCH] fix: smol refactor that rector didn't catch --- src/Handler/CacheTrait.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Handler/CacheTrait.php b/src/Handler/CacheTrait.php index b66676c..de20567 100644 --- a/src/Handler/CacheTrait.php +++ b/src/Handler/CacheTrait.php @@ -75,8 +75,7 @@ protected static function getKey(RequestInterface $request) $request->getHeaderLine(...), array_filter( array_keys($request->getHeaders()), - fn ($header) => 0 !== stripos((string) $header, 'x-') - || \array_key_exists($header, $vary) + fn ($header) => !str_starts_with(strtolower((string) $header), 'x-') || \array_key_exists($header, $vary) ) ));