修复一处header判断bug

This commit is contained in:
huangdijia
2016-02-26 16:01:14 +08:00
parent a95a0e963e
commit 124697a1cc

View File

@@ -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');
}