|
|
@ -30,7 +30,10 @@ public class ResponseHeaderFilter implements Filter {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void setContentType(String type) {
|
|
|
|
public void setContentType(String type) {
|
|
|
|
if(type.equals("text/css") || type.equals("application/javascript") || type.equals("image/svg+xml")) {
|
|
|
|
if(type.equals("text/css")
|
|
|
|
|
|
|
|
|| type.equals("application/javascript")
|
|
|
|
|
|
|
|
|| type.equals("image/svg+xml")
|
|
|
|
|
|
|
|
|| type.equals("text/html")) {
|
|
|
|
type = type+";charset=UTF-8";
|
|
|
|
type = type+";charset=UTF-8";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
super.setContentType(type);
|
|
|
|
super.setContentType(type);
|
|
|
|