SyntaxFix
Write A Post
Hire A Developer
Questions
I experienced this problem when serving up a PDF file (MIME type application/pdf) and solved it by setting the Content-Disposition header, e.g.:
Content-Disposition: attachment; filename=foo.pdf
Hope that helps.