Handle mime types correctly for files where the extension is capitalized
Merge pull request #3658 from benmccann/mime-capitalization

Handle mime types correctly for files where the extension is capitalized