Skip to content

Commit

Permalink
Skip ALPN if request is HTTP endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
davidh44 committed Feb 3, 2025
1 parent 4b838ea commit e799151
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private void configureHttp11(Channel ch, ChannelPipeline pipeline) {
}

private void configureAlpnH2(ChannelPipeline pipeline) {
pipeline.addLast(new ApplicationProtocolNegotiationHandler(ApplicationProtocolNames.HTTP_2) {
pipeline.addLast(new ApplicationProtocolNegotiationHandler("") {
@Override
protected void configurePipeline(ChannelHandlerContext ctx, String protocol) {
if (protocol.equals(ApplicationProtocolNames.HTTP_2)) {
Expand Down

0 comments on commit e799151

Please sign in to comment.