From a6247394fb805e6bb1a65f1ef6ec9ec78e5cc52f Mon Sep 17 00:00:00 2001 From: tursom Date: Sat, 23 May 2020 07:45:13 +0800 Subject: [PATCH] fix bug --- .../main/kotlin/cn/tursom/web/netty/NettyHttpObjectHandler.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/netty-web/src/main/kotlin/cn/tursom/web/netty/NettyHttpObjectHandler.kt b/web/netty-web/src/main/kotlin/cn/tursom/web/netty/NettyHttpObjectHandler.kt index cf8d592..7cf6187 100644 --- a/web/netty-web/src/main/kotlin/cn/tursom/web/netty/NettyHttpObjectHandler.kt +++ b/web/netty-web/src/main/kotlin/cn/tursom/web/netty/NettyHttpObjectHandler.kt @@ -1,6 +1,7 @@ package cn.tursom.web.netty import cn.tursom.web.HttpHandler +import io.netty.channel.ChannelHandler import io.netty.channel.ChannelHandlerContext import io.netty.channel.SimpleChannelInboundHandler import io.netty.handler.codec.http.HttpContent @@ -9,6 +10,7 @@ import io.netty.handler.codec.http.HttpRequest import io.netty.handler.codec.http.LastHttpContent import io.netty.util.AttributeKey +@ChannelHandler.Sharable class NettyHttpObjectHandler( private val handler: HttpHandler ) : SimpleChannelInboundHandler() {