Skip to content

Commit

Permalink
fix #3955 fileDownload warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wtlucy committed Aug 10, 2018
1 parent fd13586 commit f645daf
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 f645daf

Please sign in to comment.