Fix login when using `CookieAuthenticationLoginModule`, http response was being written after being committed
pageContext.setAttribute( Context.ATTR_CONTEXT, wikiContext, PageContext.REQUEST_SCOPE );
}
+ if( !response.isCommitted() ) {
response.setContentType( "text/html; charset=" + wiki.getContentEncoding() );
+ }
String contentPage = wiki.getManager( TemplateManager.class ).findJSP( pageContext, wikiContext.getTemplate(), "ViewTemplate.jsp" );
- log.debug("Login template content is: " + contentPage);
+ log.debug( "Login template content is: {}", contentPage );
%><wiki:Include page="<%=contentPage%>" />
\ No newline at end of file
