mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
修正Response的一处问题
This commit is contained in:
@@ -43,7 +43,7 @@ class Response
|
|||||||
'text' => 'text/plain',
|
'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');
|
header('Content-Type:' . $headers[$type] . '; charset=utf-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class debugTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function testGetUseTime()
|
public function testGetUseTime()
|
||||||
{
|
{
|
||||||
$time = Debug::getUseTime();
|
$time = Debug::getUseTime();
|
||||||
$this->assertLessThan(5.5, $time);
|
$this->assertLessThan(10, $time);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user