urlrewritefilter icon indicating copy to clipboard operation
urlrewritefilter copied to clipboard

Proxy mode adds duplicate headers

Open grauds opened this issue 6 years ago • 0 comments

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());

RequestProxy.zip

grauds avatar Apr 02 '18 10:04 grauds