fix bug (when use reverse proxy with TLS, "HttpServletResponse.sendRedirect" will redirect to http rather than https)