OpenFeign/feign

Can't set Content-type for Request Header when use Spring annotations

Aberta

#1.239 aberto em 10 de jun. de 2020

 (9 comentários) (5 reações) (0 responsável)Java (1.911 forks)batch import
bughelp wantedneeds info

Métricas do repositório

Stars
 (9.070 estrelas)
Métricas de merge de PR
 (Mesclagem média 2d 17h) (71 fundiu PRs em 30d)

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

Guia do colaborador