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

@ -9,6 +9,9 @@
if (!testIFrame) {
response.setStatus(307);
response.setHeader("Location", "/susidns/index");
// force commitment
response.getOutputStream().close();
return;
} else {
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">