Made HTTP header check case-insensitive

HTTP headers are typically case in-sensitive.  I have fixed a bug in the code to ensure that they are treated in a case-insensitive manner