diff --git a/Emby.Server.Implementations/Services/ResponseHelper.cs b/Emby.Server.Implementations/Services/ResponseHelper.cs index 3c2af60db0..228ae787c0 100644 --- a/Emby.Server.Implementations/Services/ResponseHelper.cs +++ b/Emby.Server.Implementations/Services/ResponseHelper.cs @@ -86,6 +86,12 @@ private static async Task WriteToResponseInternal(IResponse response, object res continue; } + if (string.Equals(responseHeaders.Key, "Content-Type", StringComparison.OrdinalIgnoreCase)) + { + response.ContentType = responseHeaders.Value; + continue; + } + response.AddHeader(responseHeaders.Key, responseHeaders.Value); } }