summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/AbstractCsv.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/AbstractCsv.php b/src/AbstractCsv.php
index 8f337f4..f50b049 100644
--- a/src/AbstractCsv.php
+++ b/src/AbstractCsv.php
@@ -320,9 +320,9 @@ abstract class AbstractCsv implements JsonSerializable, IteratorAggregate
header('Content-Type: application/octet-stream');
header('Content-Transfer-Encoding: binary');
header('Content-Disposition: attachment; filename="'.rawurlencode($filename).'"');
- if ($this->bom_on_output) {
- echo chr(239).chr(187).chr(191);
- }
+ }
+ if ($this->bom_on_output) {
+ echo chr(239).chr(187).chr(191);
}
//@codeCoverageIgnoreEnd
$iterator->rewind();