forked from I2P_Developers/i2p.i2p
Servlets: Close output stream on redirect,
instead of flushing buffer, to force commitment
This commit is contained in:
@ -183,6 +183,6 @@ public class HostCheckHandler extends GzipHandler
|
||||
// https://w3c.github.io/webappsec-upgrade-insecure-requests/
|
||||
httpResponse.setHeader("Vary", "Upgrade-Insecure-Requests");
|
||||
httpResponse.setStatus(307);
|
||||
httpResponse.flushBuffer();
|
||||
httpResponse.getOutputStream().close();
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ public class CodedIconRendererServlet extends HttpServlet {
|
||||
}
|
||||
} else {
|
||||
srs.setStatus(304);
|
||||
srs.flushBuffer();
|
||||
srs.getOutputStream().close();
|
||||
}
|
||||
} else {
|
||||
//Binary data is not present but must be substituted by file on disk
|
||||
|
Reference in New Issue
Block a user