From 124697a1ccdb57b15f9f2a854b7c321ca9d0203b Mon Sep 17 00:00:00 2001 From: huangdijia Date: Fri, 26 Feb 2016 16:01:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=84header?= =?UTF-8?q?=E5=88=A4=E6=96=ADbug?= 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 4f985948..aef1193d 100644 --- a/library/think/Response.php +++ b/library/think/Response.php @@ -43,7 +43,7 @@ class Response 'text' => 'text/plain', ]; - if (!headers_sent() && isset($headers[$type])) { + if (!headers_sent() && !headers_list() && isset($headers[$type])) { header('Content-Type:' . $headers[$type] . '; charset=utf-8'); }