PdfBundle
PdfBundle copied to clipboard
Bundle doesn't send correct Content-Type
I upgraded a symfony 2 application (which uses the PdfBundle) to 3 recently.
Since the upgrade the bundle doesn't send the correct Content-Type header anymore. it sends "text/html", when I expect "application/pdf".
It is fixable with the annotation header
/*
* @Pdf(
* headers={"Content-Type":"application/pdf"}
* )
*/
But this shouldn't be a solution in the first place.
I tested it on on several webservers (Apache/Nginx/PHP).
Any idea what is causing this? Looking at recent commits there is nothing that seems like the cause. Is it something on Symfony's end?
Thanks for letting me know, I will take care of this asap.
Hi, did you have time to look into this? We have the same issue but changing the annotation does not seem to fix it.