Fiegn HeaderMap is sending all headers custom headers as lowercase except first character

Viewed 11

I am using Fiegn clients for my springboot app and there is a requirement where I have to send custom headers, all works great except when I send a custom header with the preferred format, it is changed. Example

X-Custom-Header it is changed to X-custom-header

Here is my setup

@RequestLine("POST /test")
String payout(@RequestBody Payload payload, @HeaderMap Map<String, String> headers);

Could there be a configuration I could use to prevent this feature and keep my custom headers as is?

Any help would be appreciated, thanks

0 Answers
Related