Check extension rather than mimetype
Merge pull request #819 from edx/jkarni/hotfix/gzip-mimetype

Check extension rather than mimetype