|
|
@@ -44,7 +44,10 @@ class AppExceptionHandler extends ExceptionHandler
|
|
|
|
|
|
// 阻止异常冒泡
|
|
|
$this->stopPropagation();
|
|
|
- return $response->withHeader('Server', 'Hyperf')->withStatus(401)->withBody(new SwooleStream($data));
|
|
|
+ return $response->withHeader('Server', 'Hyperf')
|
|
|
+ ->withHeader('charset','utf-8')
|
|
|
+ ->withStatus(401)
|
|
|
+ ->withBody(new SwooleStream($data));
|
|
|
}
|
|
|
|
|
|
$this->logger->error(sprintf('%s[%s] in %s', $throwable->getMessage(), $throwable->getLine(), $throwable->getFile()));
|