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.
2 parents ec50987 + a829ab8 commit 92b4563Copy full SHA for 92b4563
lib/internal/Magento/Framework/HTTP/PhpEnvironment/Response.php
@@ -108,11 +108,8 @@ public function clearHeader($name)
108
{
109
$headers = $this->getHeaders();
110
if ($headers->has($name)) {
111
- foreach ($headers as $header) {
112
- if (strtolower($header->getFieldName()) == strtolower($name)) {
113
- $headers->removeHeader($header);
114
- }
115
+ $header = $headers->get($name);
+ $headers->removeHeader($header);
116
}
117
118
return $this;
0 commit comments