Skip to content

Commit

Permalink
FISH-10056 Don't attempt to set response buffer size on a committed r…
Browse files Browse the repository at this point in the history
…esponse

Signed-off-by: Andrew Pielage <[email protected]>
  • Loading branch information
Pandrex247 committed Nov 7, 2024
1 parent e38f741 commit 9a2c130
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,11 @@ protected ResponseWriter createResponseWriter(FacesContext context) throws IOExc

// set the buffer for content, -1 indicates nothing should be set.
if (responseBufferSize != -1) {
extContext.setResponseBufferSize(responseBufferSize);
if (!extContext.isResponseCommitted()) {
extContext.setResponseBufferSize(responseBufferSize);
} else {
LOGGER.warning("Skipping attempt to set buffer size on a committed response");
}
}

// get our content type
Expand Down

0 comments on commit 9a2c130

Please sign in to comment.