|
|
@ -28,6 +28,14 @@ public class ResponseHeaderFilter implements Filter {
|
|
|
|
|
|
|
|
|
|
|
|
chain.doFilter(request, new HttpServletResponseWrapper((HttpServletResponse) response) {
|
|
|
|
chain.doFilter(request, new HttpServletResponseWrapper((HttpServletResponse) response) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void setContentType(String type) {
|
|
|
|
|
|
|
|
if(type.equals("text/css") || type.equals("application/javascript") || type.equals("image/svg+xml")) {
|
|
|
|
|
|
|
|
type = type+";charset=UTF-8";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
super.setContentType(type);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void setHeader(String name, String value) {
|
|
|
|
public void setHeader(String name, String value) {
|
|
|
|
|
|
|
|
|
|
|
|