From 5fa8110b03b92221db84468ded8ab2fa21ff7dbe Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 16 Jan 2016 10:16:51 +0800 Subject: [PATCH] =?UTF-8?q?response=E8=BE=93=E5=87=BA=E5=AF=B9html?= =?UTF-8?q?=E5=92=8Ctext=E7=B1=BB=E5=9E=8B=E4=B8=8D=E5=81=9A=E4=BB=BB?= =?UTF-8?q?=E4=BD=95=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Response.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/think/Response.php b/library/think/Response.php index 1b9dba00..e2b902f7 100644 --- a/library/think/Response.php +++ b/library/think/Response.php @@ -62,7 +62,9 @@ class Response $data = $handler . '(' . json_encode($data, JSON_UNESCAPED_UNICODE) . ');'; break; case '': - // 类型为空不做处理 + case 'html': + case 'text': + // 不做处理 break; default: // 用于扩展其他返回格式数据