aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Model.Tests/Net
AgeCommit message (Collapse)Author
2022-01-04Remove incorrect mime type image/jpgBond_009
2021-12-25Add image/jpg to extension lookupCody Robibero
2021-12-12Use correct jpeg MIME typeBond_009
image/jpg isn't a valid MIME type
2021-12-04Update unit test nameAhmed Rafiq
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-12-04Update unit test nameAhmed Rafiq
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-12-04Use MimeTypes package to determine MIME typeAhmed Rafiq
This simplifies the code since we don't have to keep large mappings of extensions and MIME types. We still keep the ability to override the mappings for: - filling in entries not present in the package, for e.g. ".azw3" - picking preferred extensions, for e.g. MimeTypes provides ".conf" as a possible extionsion for "text/plain", and while that is correct, ".txt" would be preferrable - compatibility reasons