From ecea19cb8c2189ea727ad58b692c11b9075502da Mon Sep 17 00:00:00 2001 From: Violeta Georgieva Date: Wed, 27 Nov 2024 19:40:01 +0200 Subject: [PATCH] Use SslHandler#isEncrypted(ByteBuf, boolean) instead of the deprecated SslHandler#isEncrypted(ByteBuf) --- .../reactor/netty/http/server/NonSslRedirectDetector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactor-netty-http/src/main/java/reactor/netty/http/server/NonSslRedirectDetector.java b/reactor-netty-http/src/main/java/reactor/netty/http/server/NonSslRedirectDetector.java index efbe088fb2..4ba617c04d 100644 --- a/reactor-netty-http/src/main/java/reactor/netty/http/server/NonSslRedirectDetector.java +++ b/reactor-netty-http/src/main/java/reactor/netty/http/server/NonSslRedirectDetector.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 VMware, Inc. or its affiliates, All Rights Reserved. + * Copyright (c) 2021-2024 VMware, Inc. or its affiliates, All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ protected void decode(ChannelHandlerContext ctx, ByteBuf in, List out) { return; } ChannelPipeline pipeline = ctx.pipeline(); - if (SslHandler.isEncrypted(in)) { + if (SslHandler.isEncrypted(in, false)) { sslProvider.addSslHandler(ctx.channel(), remoteAddress, sslDebug); } else {