[PR #11699] Use MediaType instead of ToString and add text/ as disallowed mimetypes #12973

Closed
opened 2026-02-07 07:05:00 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/11699

State: closed
Merged: Yes


Changes
Added text/plain and text/html to disallowed mime types as they will most likely be m3u8 playlists, which is not compatible with SharedHttpStream. Also had to change to ContentType.MediaType instead of ContentType.ToString as the latter includes the charset.

Issues
Fixes #11679

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/11699 **State:** closed **Merged:** Yes --- <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** Added text/plain and text/html to disallowed mime types as they will most likely be m3u8 playlists, which is not compatible with SharedHttpStream. Also had to change to ContentType.MediaType instead of ContentType.ToString as the latter includes the charset. **Issues** Fixes #11679
OVERLORD added the pull-request label 2026-02-07 07:05:00 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#12973