From 726acf63aa612710464a7f3b5188cdc3b981b462 Mon Sep 17 00:00:00 2001 From: Gintautas Miselis <395992+Naktibalda@users.noreply.github.com> Date: Thu, 12 Sep 2024 00:09:07 +0300 Subject: [PATCH] Fix name of unsetHttpHeader method The method below was calling unsetHttpHeader and failing --- src/Codeception/Lib/InnerBrowser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Codeception/Lib/InnerBrowser.php b/src/Codeception/Lib/InnerBrowser.php index b07ed72..20cd4f9 100644 --- a/src/Codeception/Lib/InnerBrowser.php +++ b/src/Codeception/Lib/InnerBrowser.php @@ -380,7 +380,7 @@ public function haveHttpHeader(string $name, string $value): void * * @param string $name the name of the header to unset. */ - public function unsetHeader(string $name): void + public function unsetHttpHeader(string $name): void { $name = implode('-', array_map('ucfirst', explode('-', strtolower(str_replace('_', '-', $name))))); unset($this->headers[$name]);