Feign HeaderTemplates adds an extra space to date headers after commas
See original GitHub issueHeaderTemplates#expand(Map<String, ?>) adds space after each comma in headers. This causes an issue when converting date that uses the EEE, d MMM yyyy HH:mm:ss Z format.
Example
Client code sends Wed, 4 Jul 2001 12:08:56 -0700
Provider expects Wed, 4 Jul 2001 12:08:56 -0700
Provider receives Wed, 4 Jul 2001 12:08:56 -0700 please note the extra space between the , and 4
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Using @Headers with dynamic values in Feign client + Spring ...
I found the following issue on github and one of the commenters (lpborges) was trying to do something similar using headers in @RequestMapping...
Read more >Index (Feign Core 10.1.0 API) - Javadoc.io
Targets a template to this target, adding the base url and any target-specific headers or query parameters. apply(RequestTemplate) - Method in class feign....
Read more >Feign Makes Writing Java Http Clients Easier - Morioh
Feign uses tools like Jersey and CXF to write java clients for ReST or SOAP services ... @Headers, Method, Type, Defines a HeaderTemplate...
Read more >Setting Request Headers Using Feign - Baeldung
In the above code, the header Accept-Language is included in all APIs since it is applied to the BookClient. However, the create method...
Read more >OperatorFabric Documentation - GitHub Pages
Docker install with 4Gb of space. 16Gb of RAM. 2. Install and run server. To start OperatorFabric, you first need to clone the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thank for you reply. you are right, it is caused by formatting, but it’s because there are blank lines in import statement, not unit test method
@deniskichan You just need to manipulate the headers you sent in each individual requests. But have you tried upgrade to the newest version first?