Permalink
Browse files

cleanup

  • Loading branch information...
1 parent ab07b3a commit 4a4426832e45011b11b6e64f14e00c8c650101b9 @jamesward committed Aug 10, 2012
Showing with 0 additions and 9 deletions.
  1. +0 −9 src/main/java/com/jamesward/HttpsEnforcer.java
@@ -21,21 +21,12 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
HttpServletRequest request = (HttpServletRequest) servletRequest;
HttpServletResponse response = (HttpServletResponse) servletResponse;
-
- System.out.println("doFilter");
if (request.getHeader(X_FORWARDED_PROTO) != null) {
-
if (request.getHeader(X_FORWARDED_PROTO).indexOf("https") != 0) {
-
- System.out.println("getServletPath: " + request.getServletPath());
- System.out.println("getQueryString: " + request.getQueryString());
- System.out.println("getPathInfo: " + request.getPathInfo());
-
response.sendRedirect("https://" + request.getServerName() + request.getPathInfo());
return;
}
-
}
filterChain.doFilter(request, response);

0 comments on commit 4a44268

Please sign in to comment.