Hi,
Feign RequestTemplate's header field names are not case-insensitive.
Here is the RFC fragment in question:
https://tools.ietf.org/html/rfc7230#section-3.2
Here is the code fragment from RequestTemplate:
private final Map<String, Collection<String>> headers =
new LinkedHashMap<String, Collection<String>>();
And a JUnit test case:
@Test
public void headerFieldNamesShouldBeCaseInsensitive() throws Exception {
RequestTemplate request = new RequestTemplate();
String value = "value";
request.header("TEST", value);
assertThat(request.headers().get("test"), contains(value)); // Actual :null
}
Hi,
Feign RequestTemplate's header field names are not case-insensitive.
Here is the RFC fragment in question:
https://tools.ietf.org/html/rfc7230#section-3.2
Here is the code fragment from
RequestTemplate:And a JUnit test case: