Allow case insentitive header checking

Some http clients send the Content-type header in lowercase. This commit allows for both options.