remove custom headers

This commit is contained in:
yiranzai 2021-03-18 16:13:48 +08:00
parent 54f118b19a
commit c7b1a18311

View File

@ -112,7 +112,7 @@ abstract class WriterAbstract implements WriterInterface
* @codeCoverageIgnore
* {@inheritdoc}
*/
public function openToBrowser($outputFileName, array $headers = [])
public function openToBrowser($outputFileName)
{
$this->outputFilePath = $this->globalFunctionsHelper->basename($outputFileName);
@ -154,16 +154,6 @@ abstract class WriterAbstract implements WriterInterface
$this->globalFunctionsHelper->header('Cache-Control: max-age=0');
$this->globalFunctionsHelper->header('Pragma: public');
/*
* Set custom Headers
* Sometimes need to output or cover more headers.
*
* @see https://github.com/box/spout/issues/745
*/
foreach ($headers as $header) {
$this->globalFunctionsHelper->header($header);
}
$this->openWriter();
$this->isWriterOpened = true;