Changeset 780fdfe for apps/jetty


Ignore:
Timestamp:
Apr 28, 2018 6:37:59 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
a0fabe5
Parents:
145730f5
Message:

Console: Add POST support to the error handler so it doesn't error itself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/jetty/java/src/net/i2p/servlet/ErrorServlet.java

    r145730f5 r780fdfe  
    149149        out.println("</div></body></html>");
    150150        out.close();
     151    }
     152   
     153    /**
     154     *  Needed if the errored page was a POST
     155     *  @since 0.9.35
     156     */
     157    @Override
     158    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
     159        doGet(req, resp);
    151160    }
    152161
Note: See TracChangeset for help on using the changeset viewer.