apilayer / html2pdf.it

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

Quote filename in Content-disposition #56

Closed jamescdavis closed 7 years ago

jamescdavis commented 7 years ago

The filename should be quoted in the Content-disposition: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition

If there are spaces in the filename, some browsers (e.g. Chrome) handle it ok, while others (e.g. Firefox) truncate the filename at the first space.

This fixes issue #55