mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +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');
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ class debugTest extends \PHPUnit_Framework_TestCase
|
||||
public function testGetUseTime()
|
||||
{
|
||||
$time = Debug::getUseTime();
|
||||
$this->assertLessThan(5.5, $time);
|
||||
$this->assertLessThan(10, $time);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user