spring-native icon indicating copy to clipboard operation
spring-native copied to clipboard

@RequestHeader not working

Open grekier opened this issue 5 years ago • 1 comments

Hi.

I have a couple of projects where I use @RequestHeader to fetch a method parameter. Those do not work as far as I can tell (always comes with null value). Neither in webmvc nor webflux.

Workaround is to fetch them through HttpServletRequest.getHeader or ServerWebExchange.getRequest().getHeaders() but it would be nice to get this working.

Is there something I'm missing or is it a bug?

grekier avatar Jan 11 '21 14:01 grekier

I'll try my first PR for this project with this.

grekier avatar Jan 11 '21 14:01 grekier