Servlets: Close output stream on redirect,

instead of flushing buffer, to force commitment
This commit is contained in:
zzz
2018-03-09 21:02:00 +00:00
parent a2dbb21853
commit 4bcb1d27e4
11 changed files with 30 additions and 8 deletions

View File

@@ -2297,7 +2297,7 @@ public class WebMail extends HttpServlet
buf.append(q.replace("&", "&")); // no you don't html escape the redirect header
resp.setHeader("Location", buf.toString());
resp.setStatus(303);
resp.flushBuffer();
resp.getOutputStream().close();
Debug.debug(Debug.DEBUG, "P-R-G to " + q);
}