OpenFeign/feign
Auf GitHub ansehenCan't set Content-type for Request Header when use Spring annotations
Open
#1.239 geöffnet am 10. Juni 2020
bughelp wantedneeds info
Repository-Metriken
- Stars
- (9.070 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 2T 17h) (71 gemergte PRs in 30 T)
Beschreibung
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