From b00eb08e619ed1f79fef66891859a3f494ad9442 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 15 Nov 2011 14:31:51 -0500 Subject: [PATCH] Fix default CSV content-type Excel prefers text/csv for CSV files. Fixes #2259 --- cake/libs/controller/components/request_handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/controller/components/request_handler.php b/cake/libs/controller/components/request_handler.php index 3d9323eed3c..d1c35aefe07 100644 --- a/cake/libs/controller/components/request_handler.php +++ b/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'),