remove custom headers
This commit is contained in:
parent
54f118b19a
commit
c7b1a18311
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user