Permalink
Browse files

Fix default CSV content-type

Excel prefers text/csv for CSV files.
Fixes #2259
  • Loading branch information...
1 parent 1a2d631 commit b00eb08e619ed1f79fef66891859a3f494ad9442 @markstory markstory committed Nov 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/controller/components/request_handler.php
View
2 cake/libs/controller/components/request_handler.php
@@ -80,7 +80,7 @@ class RequestHandlerComponent extends Object {
'html' => array('text/html', '*/*'),
'text' => 'text/plain',
'txt' => 'text/plain',
- 'csv' => array('application/vnd.ms-excel', 'text/plain'),
+ 'csv' => array('text/csv', 'application/vnd.ms-excel', 'text/plain'),
'form' => 'application/x-www-form-urlencoded',
'file' => 'multipart/form-data',
'xhtml' => array('application/xhtml+xml', 'application/xhtml', 'text/xhtml'),

0 comments on commit b00eb08

Please sign in to comment.