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

Don't handle request when the response is instance of StreamedResponse #8

Closed
wants to merge 1 commit into from
Closed

Don't handle request when the response is instance of StreamedResponse #8

wants to merge 1 commit into from

Conversation

WesleyE
Copy link

@WesleyE WesleyE commented Apr 20, 2017

Fixes the Call to undefined method Symfony\Component\HttpFoundation\StreamedResponse::header() error on responses of type StreamedResponse. The StreamedResponse has no header() method.
Fixes #7

@bepsvpt
Copy link
Owner

bepsvpt commented Apr 20, 2017

Hi @WesleyE,

Thanks for the pull request.

After reviewing symfony http-foundation source code, I found that calling ResponseHeaderBag set method directly could also solve the problem.

Thus, instead of excluding response classes, I think using this solution is more suitable.

@bepsvpt bepsvpt closed this Apr 20, 2017
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

Successfully merging this pull request may close these issues.

2 participants