forked from I2P_Developers/i2p.i2p
Console: Add POST support to the error handler so it doesn't error itself
This commit is contained in:
@@ -149,6 +149,15 @@ public class ErrorServlet extends HttpServlet {
|
||||
out.println("</div></body></html>");
|
||||
out.close();
|
||||
}
|
||||
|
||||
/**
|
||||
* Needed if the errored page was a POST
|
||||
* @since 0.9.35
|
||||
*/
|
||||
@Override
|
||||
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||
doGet(req, resp);
|
||||
}
|
||||
|
||||
/**
|
||||
* Override for specific cases.
|
||||
|
||||
Reference in New Issue
Block a user