urlrewritefilter
urlrewritefilter copied to clipboard
Proxy mode adds duplicate headers
I use URL rewrite filter with Spring CORS filter and I'm getting a response with some headers duplicated. This happens because URL rewrite filter adds response headers, not just replaces them. I'm attaching a fix to this issue to consider including this to the next update or rejecting if is found improper:
hsResponse.setHeader(h.getName(), h.getValue());