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

Content types for HLS playlist & segments. #156

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

akadan47
Copy link
Contributor

@akadan47 akadan47 commented Nov 4, 2024

Safari browser (desktop and mobile versions) can play HLS playlist natively without using additional players (like HLS.js), but it requires sending correct Content-Type header (described in RFC https://datatracker.ietf.org/doc/html/rfc8216#section-4) from the server side.

This PR adds the sending of these headers and also fixes a potential vulnerability in path handling (e.g. path traversal attack).

Add HLS path parsing for security (countering path traversal attacks).
@harlanc harlanc merged commit 1057281 into harlanc:master Nov 5, 2024
1 check passed
@harlanc
Copy link
Owner

harlanc commented Nov 5, 2024

Thanks for your contributions

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