Skip to content

Commit

Permalink
Update CustomHeaderHttpFilter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster committed Aug 10, 2024
1 parent 93e0da5 commit ce1411b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ public void doProcessRequest(ServletRequest servletRequest, RequestParams<Map<St
@Override
public void doProcessResponseHeaders(Map<String, String> responseHeaders) {
super.doProcessResponseHeaders(responseHeaders);
responseHeaders.put("x-custom-doProcessResponseHeaders", "custom-header-value");
responseHeaders.put("x-custom-header1", "value1");
}

@Override
public void doProcessResponse(ServletResponse response) {
super.doProcessResponse(response);
HttpServletResponse httpServletResponse = (HttpServletResponse) response;
httpServletResponse.addHeader("x-custom-doProcessResponse", "custom-header-value");
httpServletResponse.addHeader("x-custom-header2", "value2");
}

@Override
Expand Down

0 comments on commit ce1411b

Please sign in to comment.