From 5a7840dfa80a8e575b4ac01860d5d1795b77c39f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 11 May 2016 10:12:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BResponse=E7=B1=BBsend?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Response.php b/library/think/Response.php index 4643e56e..45eaf327 100644 --- a/library/think/Response.php +++ b/library/think/Response.php @@ -98,7 +98,7 @@ class Response if ('' == $type) { $type = self::$type ?: (IS_AJAX ? Config::get('default_ajax_return') : Config::get('default_return_type')); } - + $type = strtolower($type); $data = $data ?: self::$data; if (!headers_sent() && isset(self::$contentType[$type])) {