read headers in lowercase
Merge pull request #2199 from isocolsky/fixed_headers

Read headers in lowercase