Fix #1680 : Add support for custom extension to mime-type mapping