Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dcrissman committed Jan 9, 2018
1 parent 259302b commit dbe0d7c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void init(FilterConfig filterConfig) throws ServletException {
public void destroy() {
//Do Nothing!
}

@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
LOGGER.debug("Attempting Environment Cert verification");
Expand Down Expand Up @@ -66,10 +66,9 @@ protected void unsuccessfulAuthentication(ServletRequest request,
if (response instanceof HttpServletResponse) {
((HttpServletResponse) response).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
}

response.setContentType("text/html");
response.getWriter().write("<html><head><title>Error</title></head><body>" + failed.getMessage() + "</body></html>");
response.getWriter().close();
}

}

0 comments on commit dbe0d7c

Please sign in to comment.