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

Feign changes capitalization of header-keys #2328

Open
t-merten opened this issue Feb 15, 2024 · 1 comment
Open

Feign changes capitalization of header-keys #2328

t-merten opened this issue Feb 15, 2024 · 1 comment

Comments

@t-merten
Copy link

I run a wiremock-server which is configured to return a created-response with a location header. The location header is put with an uppercase "L". A simple springboot test checks if the response of the feign client is equal to a ResponseEntity.created(URI).
The test fails because the location-key in the header of the feign-response has changed to start with a lowercase "l" during the call Util#caseInsensitiveCopyOf in line 373:
result.put(key.toLowerCase(Locale.ROOT), new LinkedList<>());

In my opinion the method Util#caseInsensitiveCopyOf must not change the capitalization of header-keys.

I am using feign-core:13.1 with springboot 3.2.2

@youssef3wi
Copy link

The method is transformed into a case-sensitive copy caseSensitiveCopyOf.

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

No branches or pull requests

2 participants