Merge pull request #18 from parsecsv/williamknauss-new-issue-14

williamknauss new issue 14
This commit is contained in:
William Knauss
2014-06-02 20:37:04 -04:00

View File

@@ -459,7 +459,12 @@ class parseCSV {
if ( $filename !== null ) {
header('Content-type: application/csv');
header('Content-Disposition: attachment; filename="'.$filename.'"');
header('Content-Length: '.strlen($data));
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Expires: 0');
header('Content-Disposition: attachment; filename="'.$filename.'"; modification-date="'.date('r').'";');
echo $data;
}