Skip to content

Commit

Permalink
fix: call resetBuffer() before redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
yuezk committed Sep 1, 2022
1 parent 78d3236 commit 2898235
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -47,6 +47,7 @@ private RelativeRedirectResponseWrapper(HttpServletResponse response, HttpStatus

@Override
public void sendRedirect(String location) throws IOException {
resetBuffer();
setStatus(this.redirectStatus.value());
setHeader(HttpHeaders.LOCATION, location);
flushBuffer();
Expand Down

0 comments on commit 2898235

Please sign in to comment.