mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 17:23:13 +00:00
Servlets: Close output stream on redirect,
instead of flushing buffer, to force commitment
This commit is contained in:
1 parent
a2dbb21853
commit
4bcb1d27e4
11 files changed
+30
-8
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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