mirror of
https://codeberg.org/simonrepp/hyper8.git
synced 2026-08-14 13:45:27 +02:00
Perform lowercase video extension comparison when mapping to mime types
This commit is contained in:
@@ -37,6 +37,7 @@ hatsch<br>
|
||||
[Matthias Bilger](https://codeberg.org/m42e)<br>
|
||||
[Meljoann](https://www.meljoann.com/)<br>
|
||||
[Michael Fritzsch](https://codeberg.org/michael-fritzsch)<br>
|
||||
[namatoj](https://autonomous.zone/@namatoj)<br>
|
||||
[Robert Pfotenhauer](https://pftnhr.xyz)<br>
|
||||
[Sam](https://ethicalrevolution.co.uk/)<br>
|
||||
[Sam Muirhead](https://www.animate-activate.studio/)<br>
|
||||
|
||||
@@ -72,7 +72,7 @@ impl VideoFile {
|
||||
// This mapping must be kept up-to-date with
|
||||
// [SUPPORTED_EXTENSIONS], otherwise it's a full on-crash somewhere
|
||||
// (but at least something that is quickly and easily discovered).
|
||||
match extension {
|
||||
match extension.to_ascii_lowercase().as_str() {
|
||||
"m4v" |
|
||||
"mp4" => "video/mp4",
|
||||
"mkv" => "video/x-matroska",
|
||||
|
||||
Reference in New Issue
Block a user