From 91f756be0b0bf78f79f93a36ffdc240a5bf4099d Mon Sep 17 00:00:00 2001 From: yiranzai Date: Thu, 18 Mar 2021 16:13:48 +0800 Subject: [PATCH] remove custom headers --- src/Spout/Writer/WriterAbstract.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/Spout/Writer/WriterAbstract.php b/src/Spout/Writer/WriterAbstract.php index 6c4191a..36a583f 100644 --- a/src/Spout/Writer/WriterAbstract.php +++ b/src/Spout/Writer/WriterAbstract.php @@ -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;