From ca89ee6e5f8283e1973d56bae9ea499640914e21 Mon Sep 17 00:00:00 2001 From: Stanislav Ilnytskyi Date: Thu, 6 Mar 2025 13:40:19 +0100 Subject: [PATCH] Update Client.php case-insensitive substring --- .../framework/Magento/TestFramework/TestCase/GraphQl/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php b/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php index d2029cbc91344..e0fe575a9a10f 100644 --- a/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php +++ b/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php @@ -294,7 +294,7 @@ private function processResponseCookies(string $headers): array $cookiesArray = []; $headers = preg_split('/((\r?\n)|(\r\n?))/', $headers); foreach ($headers as $header) { - if (strpos($header, 'Set-Cookie:') === 0) { + if (stripos($header, 'Set-Cookie:') === 0) { $cookie = preg_split('/: /', $header, 2); if (isset($cookie[1]) && !empty($cookie[1])) { $cookiesArray[] = $cookie[1];