Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java APIs are not handling headers in a case insensitive way #234

Open
marcospereira opened this issue Jan 30, 2018 · 0 comments
Open

Java APIs are not handling headers in a case insensitive way #234

marcospereira opened this issue Jan 30, 2018 · 0 comments

Comments

@marcospereira
Copy link
Member

marcospereira commented Jan 30, 2018

API

Java

Expected Behavior

When adding headers like:

Map<String, List<String>> headers = new HashMap<>();
headers.put("key", Collections.singletonList("a"));
headers.put("KEY", Collections.singletonList("b"));
ws.url("http://example.com").setHeaders(headers);

Both "a" and "b" must be returned when calling getHeaderValues("key").

The same should apply to response headers.

Actual Behavior

Only "b" is present when calling getHeaderValues("key").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants