Skip to content

Commit 5293b39

Browse files
Merge MC-31679 into 2.3.5-bugfixes-031320
2 parents 47c674e + aa89958 commit 5293b39

File tree

1 file changed

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

1 file changed

+0
-22
lines changed

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

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -191,26 +191,4 @@ public function __sleep()
191191
{
192192
return ['content', 'isRedirect', 'statusCode'];
193193
}
194-
195-
/**
196-
* Sending provided headers.
197-
*
198-
* Had to be overridden because the original did not work correctly with multi-headers.
199-
*/
200-
public function sendHeaders()
201-
{
202-
if ($this->headersSent()) {
203-
return $this;
204-
}
205-
206-
$status = $this->renderStatusLine();
207-
header($status);
208-
209-
/** @var \Zend\Http\Header\HeaderInterface $header */
210-
foreach ($this->getHeaders() as $header) {
211-
header($header->toString(), false);
212-
}
213-
214-
return $this;
215-
}
216194
}

0 commit comments

Comments
 (0)