Details
Description
Similar to CXF-2462, if a request returns a response header that looks like the following:
q: "stuff with commas, and spaces"
WebClient's response.getMetadata() returns 2 values:
- "stuff with commas
- and spaces"
while the correct response should be:
- stuff with commas, and spaces
Here's the WebClient code which reproduces the issue (as long as the server response contains a header that returns the header value above):
Response r = WebClient.create(new URI("http://localhost:8080")).path("key/quoted").get(); List<Object> l = r.getMetadata().get("q");