fix mime type for csv
This commit is contained in:
@@ -623,7 +623,7 @@ function booking_varietysessions_csv_report($timeslot_id) {
|
||||
}
|
||||
|
||||
//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");
|
||||
print $csv;
|
||||
exit(0);
|
||||
|
Reference in New Issue
Block a user