Skip to content

Commit

Permalink
Merge pull request #3958 from wtlucy/3955-fileDownloadIssue
Browse files Browse the repository at this point in the history
Fix #3955 FileDownload "Response already committed" warning
  • Loading branch information
tandraschko committed Aug 10, 2018
2 parents fd13586 + f645daf commit f2ef92f
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -92,7 +92,9 @@ public void processAction(ActionEvent actionEvent) throws AbortProcessingExcepti
outputStream.write(buffer, 0, length);
}

externalContext.setResponseStatus(200);
if (!externalContext.isResponseCommitted()) {
externalContext.setResponseStatus(200);
}
externalContext.responseFlushBuffer();
context.responseComplete();
}
Expand Down

0 comments on commit f2ef92f

Please sign in to comment.