응답 헤더 수정(charset=utf-8 추가)

main
이범준 8 months ago
parent b0142bfb06
commit 33179e5af1

@ -28,6 +28,14 @@ public class ResponseHeaderFilter implements Filter {
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
public void setHeader(String name, String value) {

Loading…
Cancel
Save