summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/AbstractCsv.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/AbstractCsv.php b/src/AbstractCsv.php
index 31a2ee3..45cdefc 100644
--- a/src/AbstractCsv.php
+++ b/src/AbstractCsv.php
@@ -324,10 +324,6 @@ abstract class AbstractCsv implements JsonSerializable, IteratorAggregate
header('Content-Type: application/octet-stream');
header('Content-Transfer-Encoding: binary');
header('Content-Disposition: attachment; filename="'.$filename.'"');
- if (! $iterator instanceof SplTempFileObject) {
- $size = $iterator->getSize() + strlen($bom);
- header('Content-Length: '.$size);
- }
echo $bom;
}
//@codeCoverageIgnoreEnd