apilayer / html2pdf.it

Webservice for generating pdfs from html
html2pdf.it
548 stars 157 forks source link

Suggestion: Add mime type #62

Closed jarodium closed 7 years ago

jarodium commented 7 years ago

Hello, Just came up with the following issue: On hosts which process php within html files, I get the following warning:

" returns content type application/x-httpd-lsphp. You must point html2pdf.it to HTML or TEXT content"

The HTML file was a valid generated but the client added the apache handler to php.

ebdrup commented 7 years ago

The fix for this is really to use a correct content-type html header