Reputation: 3824
From HttpServletRequest.getHeader("name")
how can I get the value irrespective of case ...like somebody specifying name or Name etc.
Upvotes: 2
Views: 9600
Reputation: 107
According to the javadoc, the parameter is considered case insensitive:
So your example should already be good to go, catching both "name" and "Name".
Upvotes: 4