Console: Change sendError() to setStatus() for 3xx responses

to avoid unnecessary output
This commit is contained in:
zzz
2018-02-20 19:45:49 +00:00
parent 86b3b13d6f
commit 33ea4cf571
5 changed files with 8 additions and 5 deletions

View File

@ -63,7 +63,8 @@ public class CodedIconRendererServlet extends HttpServlet {
I2PAppContext.getGlobalContext().logManager().getLog(getClass()).warn("Error writing binary image data for plugin", e);
}
} else {
srs.sendError(304, "Not Modified");
srs.setStatus(304);
srs.flushBuffer();
}
} else {
//Binary data is not present but must be substituted by file on disk