fix mime type for csv

This commit is contained in:
2018-07-12 08:08:44 +10:00
parent 62ae5d89a4
commit b8e2f852af

View File

@@ -623,7 +623,7 @@ function booking_varietysessions_csv_report($timeslot_id) {
} }
//output the CSV to the browser //output the CSV to the browser
drupal_add_http_header("Content-type", "application/octet-stream; charset=utf-8"); drupal_add_http_header("Content-type", "text/csv; charset=utf-8");
drupal_add_http_header("Content-Disposition", "attachment; filename=" . $name . ".csv"); drupal_add_http_header("Content-Disposition", "attachment; filename=" . $name . ".csv");
print $csv; print $csv;
exit(0); exit(0);