How can I view a PDF in Firefox when the server specifies the wrong content type?
Posted
by
Sam
on Super User
See other posts from Super User
or by Sam
Published on 2012-10-31T05:41:17Z
Indexed on
2012/10/31
11:04 UTC
Read the original article
Hit count: 261
I am using Mozilla Firefox with a PDF viewer plug-in. The plug-in has been correctly associated with Adobe Reader files to view them in the browser in the settings.
I would like to be able to view PDF files in Firefox rather than downloading them. This already works correctly when a web server indicates that a file has the Content-Type
of application/pdf
. However, some web servers provide other Content-Type
s for PDFs, such as application/octet-stream
. (See this example of a PDF served with a non-pdf Content-Type
.)
I have looked at Firefox's MimeTypes.rdf file, and it appears to only support mapping applications based on file types for non-Internet-based files.
How can I have Firefox view all PDF documents in-browser rather than only the ones with the application/pdf
Content-Type
?
© Super User or respective owner