spring - Get case insensitive request header value -


from httpservletrequest.getheader("name") how can value irrespective of case ...like specifying name or name etc.

according javadoc, parameter considered case insensitive:

http://docs.oracle.com/javaee/6/api/javax/servlet/http/httpservletrequest.html#getheader%28java.lang.string%29

so example should go, catching both "name" , "name".


Comments

Popular posts from this blog

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -