diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-04-11 17:48:00 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-04-11 17:48:00 +0200 |
| commit | e0f50f504afe5713f64d644a464f39e903d9ef6b (patch) | |
| tree | c974d8bfdaa09ebca7dcfd7bced957ef59836240 /Jellyfin.Server/Filters/FileRequestFilter.cs | |
| parent | b7da5c18605c2f953204645005dc9bd6729b6921 (diff) | |
| parent | eacdc83fda01b712d2f9821e6624449304395486 (diff) | |
Merge remote-tracking branch 'upstream/master' into epg-fixes
Diffstat (limited to 'Jellyfin.Server/Filters/FileRequestFilter.cs')
| -rw-r--r-- | Jellyfin.Server/Filters/FileRequestFilter.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Jellyfin.Server/Filters/FileRequestFilter.cs b/Jellyfin.Server/Filters/FileRequestFilter.cs index 86dbf7657e..3d5b1fdf1f 100644 --- a/Jellyfin.Server/Filters/FileRequestFilter.cs +++ b/Jellyfin.Server/Filters/FileRequestFilter.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; using Jellyfin.Api.Attributes; -using Microsoft.OpenApi.Models; +using Microsoft.OpenApi; using Swashbuckle.AspNetCore.SwaggerGen; namespace Jellyfin.Server.Filters @@ -28,10 +28,11 @@ namespace Jellyfin.Server.Filters { Schema = new OpenApiSchema { - Type = "string", + Type = JsonSchemaType.String, Format = "binary" } }; + body.Content ??= new System.Collections.Generic.Dictionary<string, OpenApiMediaType>(); foreach (var contentType in contentTypes) { body.Content.Add(contentType, mediaType); |
