mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 06:12:27 +00:00
SEC-835: use setContentType on response for J2EE 1.3 compatibility.
This commit is contained in:
parent
11b448c0e0
commit
25ba269db0
@ -76,8 +76,7 @@ public class DefaultLoginPageGeneratingFilter extends SpringSecurityFilter {
|
|||||||
protected void doFilterHttp(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
|
protected void doFilterHttp(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
|
||||||
if (isLoginUrlRequest(request)) {
|
if (isLoginUrlRequest(request)) {
|
||||||
String loginPageHtml = generateLoginPageHtml(request);
|
String loginPageHtml = generateLoginPageHtml(request);
|
||||||
response.setCharacterEncoding("UTF-8");
|
response.setContentType("text/html;charset=UTF-8");
|
||||||
response.setContentType("text/html");
|
|
||||||
response.setContentLength(loginPageHtml.length());
|
response.setContentLength(loginPageHtml.length());
|
||||||
response.getOutputStream().print(loginPageHtml);
|
response.getOutputStream().print(loginPageHtml);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user