We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7d66bf commit 82b927bCopy full SHA for 82b927b
tests/PHPCurlClass/PHPCurlClassTest.php
@@ -3457,6 +3457,18 @@ public function testUnsetHeader()
3457
$this->assertEquals('', $curl->response);
3458
}
3459
3460
+ public function testRemoveHeader()
3461
+ {
3462
+ $curl = new Curl();
3463
+ $curl->get(Test::TEST_URL);
3464
+ $this->assertEquals('127.0.0.1:8000', $curl->requestHeaders['host']);
3465
+
3466
3467
+ $curl->removeHeader('HOST');
3468
3469
+ $this->assertEquals('', $curl->requestHeaders['host']);
3470
+ }
3471
3472
public function testGetInfo()
3473
{
3474
$test = new Test();
0 commit comments