I am getting error when I use Knp\Snappy\Pdf


When I try to download PDF using Knp\Snappy\Pdf, I got following error.

The header content contains invalid characters!
The request could not be proxied because some headers contained invalid data.

Status Page | Support | Dashboard | Home

Do you know why I am getting this?

The header is following.

Content-Disposition: attachment; filename=some.pdf
Content-Type: application/pdf

I did not get this error on my development environment.

Best regards,


Could you resolve this issue. If you did I would like to know how !! I have similar issue on file download


could you tell in more detail what are you trying to do and how to reproduce the problem.
maybe share a workspace where this happens