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

mp4 parser for trailing header must keep original request fields #585

Merged
merged 1 commit into from Apr 14, 2021

Conversation

philippe44
Copy link
Contributor

Yet another one that I discover with mixcloud. Some mp4 files have their headers at the end of the file, after the audio. The parser handles that and jumps there, except that it is creating a new HTTP::Request and if the original one has some custom headers (like user-agent in the case of mixcloud), then they are not preserved and the parsing might fail.

I missed that in my tests because I was using an LMS version with a default user-agent of "Mozilla/5.0"... of course. This PR re-uses the original HTTP::Request but just add the Range field. I recommend applying that against 8.1 otherwise mixcloud will not work

@mherger mherger self-assigned this Apr 14, 2021
@mherger
Copy link
Contributor

mherger commented Apr 14, 2021

Keep them coming! Thanks!

@mherger mherger merged commit af78445 into LMS-Community:public/8.2 Apr 14, 2021
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.

None yet

2 participants