-
Notifications
You must be signed in to change notification settings - Fork 788
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
A bug of header adding and getting in OpenFeign RequestInterceptor #760
Comments
Hello, @HaojunRen. Thanks for providing the sample and sorry for not getting back to you earlier. I was able to reproduce the behaviour you've described. However, this happens while executing |
From the feign side, the issue here is the values being provided in the header are not valid JSON. The parameter names are not quoted properly, so the value in Feign is being truncated. |
Suggest to upgrade OpenFeign version to 12.0+ ASAP, It seems to fix an important bug. Refer to |
@HaojunRen We're on Feign |
Describe the bug
If we add add a header named
abc
with value{x:1.0,y:1.1}
to OpenFeignRestTemplate
, and get it to print, the final value will be{x:1.0,y}
. That means:1.1
is lost.This issue happens on Spring Cloud
2021.0.4.0
, Spring Cloud2020.0.6
andHoxton.SR12
works fine.Please take a look for it. Thanks
Sample
RequestInterceptor
code as followsCreate the bean in your configuration
The text was updated successfully, but these errors were encountered: