Filter过滤器chain.doFilter(request, response)后处理。

chain.doFilter(request, response);
String headerLocation = httpResponse.getHeader("Location");
String newUrl = "http://baidu.com";
((HttpServletResponse) response).setHeader("Location", newUrl);
这段代码执行后响应体 Location还是没有变化是为什么?