PdfBundle icon indicating copy to clipboard operation
PdfBundle copied to clipboard

Bundle doesn't send correct Content-Type

Open Koalabaerchen opened this issue 9 years ago • 2 comments

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?

Koalabaerchen avatar Feb 15 '16 16:02 Koalabaerchen

Thanks for letting me know, I will take care of this asap.

psliwa avatar Feb 17 '16 18:02 psliwa

Hi, did you have time to look into this? We have the same issue but changing the annotation does not seem to fix it.

Babacooll avatar Mar 29 '16 13:03 Babacooll