Hi,
I'm looking into writing a custom Request/Response Filter to handle an
internal request authentication method, and I'm studying the Jersey
HttpAuthenticationFilter for that.
I'm looking at the source, and in the "repeatRequest" method there is a
few lines of code that I don't understand the purpose of:
MultivaluedMap<String, String> headers = response.getHeaders();
headers.clear();
headers.putAll(nextResponse.getStringHeaders());
I might be blind, but I don't see what this is supposed to accomplish.
As far as I can see, this is dead code. "headers" is not used in the
remainder of the method...
So, please tell me, am I blind? :)
Maarten