aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2021-12-12 02:07:35 +0100
committerBond_009 <bond.009@outlook.com>2021-12-12 02:07:35 +0100
commit7ee96a59d3b69e15aec1df33ad46f47021f8a20b (patch)
treeb1ad13f814ed6883d28d24f666c37316c76081af /MediaBrowser.Model
parenta90614d194314f8a4d6f097637836610ce8b6bbe (diff)
Use correct jpeg MIME type
image/jpg isn't a valid MIME type
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/Net/MimeTypes.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Net/MimeTypes.cs b/MediaBrowser.Model/Net/MimeTypes.cs
index 506e8e9d6..3b03466e9 100644
--- a/MediaBrowser.Model/Net/MimeTypes.cs
+++ b/MediaBrowser.Model/Net/MimeTypes.cs
@@ -116,7 +116,7 @@ namespace MediaBrowser.Model.Net
{ "audio/x-wavpack", ".wv" },
// Type image
- { "image/jpg", ".jpg" },
+ { "image/jpeg", ".jpg" },
{ "image/x-png", ".png" },
// Type text
@@ -137,7 +137,7 @@ namespace MediaBrowser.Model.Net
/// <param name="filename">The filename to find the MIME type of.</param>
/// <param name="defaultValue">The default value to return if no fitting MIME type is found.</param>
/// <returns>The correct MIME type for the given filename, or <paramref name="defaultValue"/> if it wasn't found.</returns>
- [return: NotNullIfNotNullAttribute("defaultValue")]
+ [return: NotNullIfNotNull("defaultValue")]
public static string? GetMimeType(string filename, string? defaultValue = null)
{
if (filename.Length == 0)