src/main/java/org/apache/sling/auth/core/spi/AbstractAuthenticationFormServlet.java [103:127]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private void handle(HttpServletRequest request, HttpServletResponse response) {
        try {
            // reset the response first
            response.reset();

            // setup the response for HTML and cache prevention
            response.setContentType("text/html");
            response.setCharacterEncoding("UTF-8");
            response.setHeader("Cache-Control", "no-cache");
            response.addHeader("Cache-Control", "no-store");
            response.setHeader("Pragma", "no-cache");
            response.setHeader("Expires", "0");

            // send the form and flush
            response.getWriter().print(getForm(request));
            response.flushBuffer();
        } catch (IOException ioe) {
            log("Unexpected exception caught", ioe);
            try {
                response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
            } catch (IOException ioe2) {
                log("Unexpected exception caught while sending the error", ioe2);
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/sling/auth/core/spi/AbstractJakartaAuthenticationFormServlet.java [101:125]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private void handle(HttpServletRequest request, HttpServletResponse response) {
        try {
            // reset the response first
            response.reset();

            // setup the response for HTML and cache prevention
            response.setContentType("text/html");
            response.setCharacterEncoding("UTF-8");
            response.setHeader("Cache-Control", "no-cache");
            response.addHeader("Cache-Control", "no-store");
            response.setHeader("Pragma", "no-cache");
            response.setHeader("Expires", "0");

            // send the form and flush
            response.getWriter().print(getForm(request));
            response.flushBuffer();
        } catch (IOException ioe) {
            log("Unexpected exception caught", ioe);
            try {
                response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
            } catch (IOException ioe2) {
                log("Unexpected exception caught while sending the error", ioe2);
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



