Open rlishchyshyn opened 3 days ago
This change enhances MIME type validation by adding support for M3U playlist formats, specifically for video and HLS (HTTP Live Streaming) content. It checks for the MIME types application/vnd.apple.mpegurl and application/x-mpegurl, which are used for M3U playlists that are commonly associated with streaming video. https://github.com/WaterMediaTeam/watermedia/blob/5db212cec77c87b4faa3df0ee4878e97d63fa21f/src/main/java/org/watermedia/api/image/ImageFetch.java#L77-L82
application/vnd.apple.mpegurl
application/x-mpegurl
I suggest doing something like this
This change enhances MIME type validation by adding support for M3U playlist formats, specifically for video and HLS (HTTP Live Streaming) content. It checks for the MIME types
application/vnd.apple.mpegurl
andapplication/x-mpegurl
, which are used for M3U playlists that are commonly associated with streaming video. https://github.com/WaterMediaTeam/watermedia/blob/5db212cec77c87b4faa3df0ee4878e97d63fa21f/src/main/java/org/watermedia/api/image/ImageFetch.java#L77-L82I suggest doing something like this