From 93ca9abd1f9a1c190f047b8ab5743c5894e243a5 Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Thu, 5 Oct 2023 12:54:31 -0400 Subject: [PATCH] Single netty request class Signed-off-by: Craig Perkins --- .../ssl/http/netty/Netty4HttpRequestHeaderVerifier.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opensearch/security/ssl/http/netty/Netty4HttpRequestHeaderVerifier.java b/src/main/java/org/opensearch/security/ssl/http/netty/Netty4HttpRequestHeaderVerifier.java index 6c767b99f2..abb4fb7426 100644 --- a/src/main/java/org/opensearch/security/ssl/http/netty/Netty4HttpRequestHeaderVerifier.java +++ b/src/main/java/org/opensearch/security/ssl/http/netty/Netty4HttpRequestHeaderVerifier.java @@ -18,8 +18,8 @@ import io.netty.channel.ChannelHandlerContext; import org.opensearch.http.HttpHandlingSettings; -import org.opensearch.http.netty4.Netty4DefaultHttpRequest; import org.opensearch.http.netty4.Netty4HttpChannel; +import org.opensearch.http.netty4.Netty4HttpRequest; import org.opensearch.http.netty4.Netty4HttpServerTransport; import org.opensearch.rest.RestRequest; import org.opensearch.security.filter.SecurityRestFilter; @@ -88,7 +88,7 @@ public void channelRead0(ChannelHandlerContext ctx, DefaultHttpRequest msg) thro } final Netty4HttpChannel httpChannel = ctx.channel().attr(Netty4HttpServerTransport.HTTP_CHANNEL_KEY).get(); - final Netty4DefaultHttpRequest httpRequest = new Netty4DefaultHttpRequest(msg); + final Netty4HttpRequest httpRequest = new Netty4HttpRequest(msg); RestRequest restRequest = AbstractHttpServerTransport.createRestRequest(xContentRegistry, httpRequest, httpChannel); InterceptingRestChannel interceptingRestChannel = new InterceptingRestChannel(