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

@@ -24,6 +24,8 @@
// probably because restart or shutdown was clicked
response.setStatus(307);
response.setHeader("Location", "/graphs");
// force commitment
response.getOutputStream().close();
return;
}
%>