Bug 879161 - Fix pdf.js mimetype check.
Merge pull request #3450 from brendandahl/fix-mimetype-check

Bug 879161 - Fix pdf.js mimetype check.