Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle doesn't send correct Content-Type #69

Open
Koalabaerchen opened this issue Feb 15, 2016 · 2 comments
Open

Bundle doesn't send correct Content-Type #69

Koalabaerchen opened this issue Feb 15, 2016 · 2 comments

Comments

@Koalabaerchen
Copy link

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 Koalabaerchen changed the title Bundle doesn't send correkt Content-Type Bundle doesn't send correct Content-Type Feb 15, 2016
@psliwa
Copy link
Owner

psliwa commented Feb 17, 2016

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

@Babacooll
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants