mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
修正Response的一处问题
This commit is contained in:
@@ -43,7 +43,7 @@ class Response
|
||||
'text' => 'text/plain',
|
||||
];
|
||||
|
||||
if (!headers_sent() && !headers_list() && isset($headers[$type])) {
|
||||
if (!headers_sent() && isset($headers[$type])) {
|
||||
header('Content-Type:' . $headers[$type] . '; charset=utf-8');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user