OpenFeign/feign
Voir sur GitHubCan't set Content-type for Request Header when use Spring annotations
Open
#1 239 ouverte le 10 juin 2020
bughelp wantedneeds info
Métriques du dépôt
- Stars
- (9 070 stars)
- Métriques de merge PR
- (Merge moyen 2j 17h) (71 PRs mergées en 30 j)
Description
I'm using Feign and Spring annotations, I have a request that expects to accept "text/plain".
@PostMapping(value = "/demo", consumes = "application/json", produces="text/plain")
public String demo(@RequestBody List<Long> ids);
But, the produces value not working. The request still has a header: Accept=application/json