Skip to content

Fix BinaryFileResponse with range to psr response conversion #85

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

Conversation

iluuu1994
Copy link

Closes #84

As requested by Fabien.

I think using the slightly less optimal version of checking for a Content-Range header is better than relying on reflection. In theory, this could be slightly sub optimal when streaming whole files and setting the Content-Range manually but I'm assuming that's very rare in practice.

@iluuu1994
Copy link
Author

Any feedback?

@nicolas-grekas
Copy link
Member

Thank you @iluuu1994.

@nicolas-grekas nicolas-grekas merged commit cffb3a8 into symfony:master Sep 29, 2020
@iluuu1994
Copy link
Author

Great! Thanks @nicolas-grekas!

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.

PsrHttpFactory::createResponse doesn't respect Content-Range headers from BinaryFileResponse
2 participants