Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix default CSV content-type

Excel prefers text/csv for CSV files.
Fixes #2259
  • Loading branch information...
commit b00eb08e619ed1f79fef66891859a3f494ad9442 1 parent 1a2d631
@markstory markstory authored
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'),
Please sign in to comment.
Something went wrong with that request. Please try again.