改名
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
namespace Server;
|
||||
|
||||
use Exception;
|
||||
use HttpServer\Exception\ExitException;
|
||||
use HttpServer\Http\Request as HRequest;
|
||||
use HttpServer\Http\Response as HResponse;
|
||||
use HttpServer\Route\Router;
|
||||
@@ -113,7 +112,7 @@ class HTTPServerListener extends Abstracts\Server
|
||||
}
|
||||
} catch (Error | Throwable $exception) {
|
||||
$sResponse->addHeader('Content-Type', 'text/html; charset=utf-8');
|
||||
$sResponse->send(jTraceEx($exception),
|
||||
$sResponse->send(jTraceEx($exception, null, true),
|
||||
$exception->getCode() == 0 ? 500 : $exception->getCode());
|
||||
} finally {
|
||||
$this->_event->dispatch(Event::SYSTEM_RESOURCE_RELEASES);
|
||||
|
||||
Reference in New Issue
Block a user