Describe the bug
When I define a feign client with two MediaTypes in produces (produces={MediaType.APPLICATION_PDF_VALUE, MediaType.APPLICATION_JSON_VALUE}), the client only sends the first value in the accept header.
I would expect the client to send both MediaTypes in the Accept header, separated by comma.
Current workaround
The current workaround for me is to specify the produces attribute as String:
produces=MediaType.APPLICATION_PDF_VALUE + "," + MediaType.APPLICATION_JSON_VALUE
Then the accept header is send as expected.
Describe the bug
When I define a feign client with two MediaTypes in produces (produces={MediaType.APPLICATION_PDF_VALUE, MediaType.APPLICATION_JSON_VALUE}), the client only sends the first value in the accept header.
I would expect the client to send both MediaTypes in the Accept header, separated by comma.
Current workaround
The current workaround for me is to specify the produces attribute as String:
produces=MediaType.APPLICATION_PDF_VALUE + "," + MediaType.APPLICATION_JSON_VALUE
Then the accept header is send as expected.