Skip to content

Commit

Permalink
Fix default CSV content-type
Browse files Browse the repository at this point in the history
Excel prefers text/csv for CSV files.
Fixes #2259
  • Loading branch information
markstory committed Nov 15, 2011
1 parent 1a2d631 commit b00eb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/controller/components/request_handler.php
Expand Up @@ -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'),
Expand Down

0 comments on commit b00eb08

Please sign in to comment.