Make sure the extension is lower-cased before comparing.
Dependency updates
Added support for automatic content-type recognition.