Skip to content

Commit

Permalink
Fix Netty HTTP/2 to not send push promise if not allowed (#1261)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Mashkov committed Jan 10, 2020
1 parent b9fab08 commit cdd5c94
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ internal class NettyHttp2Handler(
val codec = channel.parent().pipeline().get(Http2MultiplexCodec::class.java)!!
val connection = codec.connection()

if (!connection.remote().allowPushTo()) {
return
}

val rootContext = channel.parent().pipeline().lastContext()

Expand Down

0 comments on commit cdd5c94

Please sign in to comment.