Skip to content

Commit

Permalink
Fixes #2192 - Grizzly 2.4.4/4.0.0 missing Content-Type in response
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem committed Oct 13, 2023
1 parent 24faaf6 commit 1c2d0d2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1c2d0d2

Please sign in to comment.