I know how spring works I swear

This commit is contained in:
MiniDigger | Martin 2022-07-28 23:28:59 +02:00
parent fac436ac91
commit 53c73be0e2

View File

@ -110,8 +110,9 @@ public class WebConfig extends WebMvcConfigurationSupport {
public Filter identifyFilter() {
return new OncePerRequestFilter() {
@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) {
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
response.setHeader("Server", "Hangar");
filterChain.doFilter(request, response);
}
};
}