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])) {