Looked up the javadoc for `getHeader` to confirm:
http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#getHeader(java.lang.String)

The header name is surely case insensitive. The value however seems to always be sent as `XMLHttpRequest`