From 33a1d999a8feca71d825473b62573ef3ed7a4221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Wed, 7 Feb 2024 08:55:08 +0100 Subject: [PATCH] Converted Headers to lowercase --- src/lib/Browser/Context/BrowserContext.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/Browser/Context/BrowserContext.php b/src/lib/Browser/Context/BrowserContext.php index 56da80c1..85352879 100644 --- a/src/lib/Browser/Context/BrowserContext.php +++ b/src/lib/Browser/Context/BrowserContext.php @@ -65,8 +65,7 @@ private function getHeaderValue($responseHeaders, $header): string if ($this->getSession()->getDriver() instanceof ChromeDriver) { return $responseHeaders[$header]; } - var_dump($responseHeaders); - return $responseHeaders[$header][0]; + return $responseHeaders[strtolower($header)][0]; } }