Skip to content
This repository
Browse code

Fix default CSV content-type

Excel prefers text/csv for CSV files.
Fixes #2259
  • Loading branch information...
commit b00eb08e619ed1f79fef66891859a3f494ad9442 1 parent 1a2d631
Mark Story authored November 15, 2011
2  cake/libs/controller/components/request_handler.php
@@ -80,7 +80,7 @@ class RequestHandlerComponent extends Object {
80 80
 		'html'			=> array('text/html', '*/*'),
81 81
 		'text'			=> 'text/plain',
82 82
 		'txt'			=> 'text/plain',
83  
-		'csv'			=> array('application/vnd.ms-excel', 'text/plain'),
  83
+		'csv'			=> array('text/csv', 'application/vnd.ms-excel', 'text/plain'),
84 84
 		'form'			=> 'application/x-www-form-urlencoded',
85 85
 		'file'			=> 'multipart/form-data',
86 86
 		'xhtml'			=> array('application/xhtml+xml', 'application/xhtml', 'text/xhtml'),

0 notes on commit b00eb08

Please sign in to comment.
Something went wrong with that request. Please try again.