修正Response的一处问题

This commit is contained in:
thinkphp
2016-03-11 22:38:51 +08:00
parent 071a6e4037
commit aca956c460
2 changed files with 2 additions and 2 deletions

View File

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

View File

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