Skip to content

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