mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修复一处header判断bug
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user