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