Skip to content

Commit

Permalink
Merge pull request #2195 from mnriem/issue-2912-main
Browse files Browse the repository at this point in the history
Fixes #2192 - Grizzly 2.4.4/4.0.0 missing Content-Type in response
  • Loading branch information
arjantijms authored Nov 1, 2023
2 parents e4c7d9d + 1c2d0d2 commit 3d3bcb6
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 3d3bcb6

Please sign in to comment.