Skip to content

Bundle doesn't send correct Content-Type #69

@Koalabaerchen

Description

@Koalabaerchen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions