Skip to content

Commit 08b023c

Browse files
author
okarpenko
committed
MAGETWO-33074: Upgrade response class
- fix header replace functionality
1 parent 834b894 commit 08b023c

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/HTTP/PhpEnvironment

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/HTTP/PhpEnvironment/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function clearHeader($name)
109109
$headers = $this->getHeaders();
110110
if ($headers->has($name)) {
111111
foreach ($headers as $header) {
112-
if ($header->getFieldName() == $name) {
112+
if (strtolower($header->getFieldName()) == $name) {
113113
$headers->removeHeader($header);
114114
}
115115
}

0 commit comments

Comments
 (0)