From cb83dc2664934bebfe8bfac3fb1d68dc6bc05a4e Mon Sep 17 00:00:00 2001 From: nielsvanvelzen Date: Sun, 25 Aug 2024 02:46:38 -0400 Subject: Backport pull request #12490 from jellyfin/release-10.9.z Set Content-Disposition header to attachment for image endpoints Original-merge: 9645955629595a6ba2668432aeeadc4989c413b2 Merged-by: crobibero Backported-by: Joshua M. Boniface --- Jellyfin.Api/Controllers/PluginsController.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Jellyfin.Api/Controllers/PluginsController.cs') diff --git a/Jellyfin.Api/Controllers/PluginsController.cs b/Jellyfin.Api/Controllers/PluginsController.cs index 6abd7a23e..53b7349e7 100644 --- a/Jellyfin.Api/Controllers/PluginsController.cs +++ b/Jellyfin.Api/Controllers/PluginsController.cs @@ -233,6 +233,8 @@ public class PluginsController : BaseJellyfinApiController return NotFound(); } + Response.Headers.ContentDisposition = "attachment"; + imagePath = Path.Combine(plugin.Path, plugin.Manifest.ImagePath); return PhysicalFile(imagePath, MimeTypes.GetMimeType(imagePath)); } -- cgit v1.2.3