Skip to content

Commit

Permalink
Don't attempt to set response buffer size on a committed response
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Pielage <pandrex247@hotmail.com>
  • Loading branch information
Pandrex247 committed Dec 2, 2024
1 parent 7cc56a1 commit bee6da5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,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 bee6da5

Please sign in to comment.