-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Can't set request header in json format #2252
Comments
spring-cloud-starter-openfeign: 3.1.4 |
{"a":"b""c"} |
Regardless of whether the json format is correct or not, the example I gave above already shows that the header has been parsed as the wrong string, my problem is that the header should support json format, and should not be parsed as a template even if it has |
It's the same problem, but it hasn't been solved |
This change adds a new method RequestTemplate#headerLiteral which allows adding headers which are not interpreted as Template expressions. This allows adding empty JSON objects to headers in RequestInterceptor implementations. Fixes OpenFeign#2252, OpenFeign#1987
* Allows adding literal header values to RequestTemplate This change adds a new method RequestTemplate#headerLiteral which allows adding headers which are not interpreted as Template expressions. This allows adding empty JSON objects to headers in RequestInterceptor implementations. Fixes #2252, #1987 * Update RequestTemplate.java --------- Co-authored-by: Marvin <velo@users.noreply.github.com>
* Allows adding literal header values to RequestTemplate This change adds a new method RequestTemplate#headerLiteral which allows adding headers which are not interpreted as Template expressions. This allows adding empty JSON objects to headers in RequestInterceptor implementations. Fixes #2252, #1987 * Update RequestTemplate.java --------- Co-authored-by: Marvin <velo@users.noreply.github.com>
The text was updated successfully, but these errors were encountered: