导出格式优化

This commit is contained in:
wanghongenpin
2023-09-21 17:40:14 +08:00
parent 8378e8a10d
commit a6cab55dcc
8 changed files with 21 additions and 12 deletions

View File

@@ -222,7 +222,7 @@ class HttpChannelHandler extends ChannelHandler<HttpRequest> {
/// 异常处理
_exceptionHandler(Channel channel, HttpRequest? request, error) {
HostAndPort? hostAndPort = channel.getAttribute(AttributeKeys.host);
hostAndPort ??= HostAndPort.host(channel.remoteAddress.host, channel.remotePort);
hostAndPort ??= HostAndPort.host(scheme:HostAndPort.httpScheme, channel.remoteAddress.host, channel.remotePort);
String message = error.toString();
HttpStatus status = HttpStatus(-1, message);
if (error is HandshakeException) {