summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKris Reeck <kris@bythepixel.com>2016-09-01 10:53:08 -0400
committerKris Reeck <kris@bythepixel.com>2016-09-01 12:27:37 -0400
commitb61b7d638f0ca61def57bfa8656db375945daf11 (patch)
tree3dfae05840ef988ed242c171fbce55eb335d23c8 /src
parentb9a099820ce7e47583f89c456d8ed7203b7be20f (diff)
downloadcsv-b61b7d638f0ca61def57bfa8656db375945daf11.zip
csv-b61b7d638f0ca61def57bfa8656db375945daf11.tar.gz
csv-b61b7d638f0ca61def57bfa8656db375945daf11.tar.bz2
Changed Content-Type header to text/csv re: RFC 7111
Diffstat (limited to 'src')
-rw-r--r--src/Config/Output.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Config/Output.php b/src/Config/Output.php
index 27221d6..2e8bb15 100644
--- a/src/Config/Output.php
+++ b/src/Config/Output.php
@@ -179,7 +179,7 @@ trait Output
{
if (null !== $filename) {
$filename = filter_var($filename, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW);
- header('Content-Type: application/octet-stream');
+ header('Content-Type: text/csv');
header('Content-Transfer-Encoding: binary');
header("Content-Disposition: attachment; filename=\"$filename\"");
}