From 1c2d0d26fdd4a75d21317d864e07a2f2d866c27b Mon Sep 17 00:00:00 2001 From: Automated workflow Date: Fri, 13 Oct 2023 17:00:58 -0500 Subject: [PATCH] Fixes #2192 - Grizzly 2.4.4/4.0.0 missing Content-Type in response --- .../org/glassfish/grizzly/http/server/HttpServerFilter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/http-server/src/main/java/org/glassfish/grizzly/http/server/HttpServerFilter.java b/modules/http-server/src/main/java/org/glassfish/grizzly/http/server/HttpServerFilter.java index 2ab201038b..879f7305db 100644 --- a/modules/http-server/src/main/java/org/glassfish/grizzly/http/server/HttpServerFilter.java +++ b/modules/http-server/src/main/java/org/glassfish/grizzly/http/server/HttpServerFilter.java @@ -325,6 +325,10 @@ private NextAction afterService(final FilterChainContext ctx, final Connection c final HttpContext context = request.getRequest().getProcessingState().getHttpContext(); + if (request.getRequest().isUpgrade() && !response.getResponse().isUpgrade()) { + request.getRequest().setIgnoreContentModifiers(false); + } + httpRequestInProgress.remove(context); response.finish(); request.onAfterService();