aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/PluginsController.cs
diff options
context:
space:
mode:
authornielsvanvelzen <nielsvanvelzen@users.noreply.github.com>2024-08-25 02:46:38 -0400
committerJoshua M. Boniface <joshua@boniface.me>2024-08-25 02:46:38 -0400
commitcb83dc2664934bebfe8bfac3fb1d68dc6bc05a4e (patch)
treec5f694a3ee618b715291e1e20eab56991d215cb5 /Jellyfin.Api/Controllers/PluginsController.cs
parent2fd9418af021211aa97f8bda5a534f4eb1511769 (diff)
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 <cody@robibe.ro> Backported-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'Jellyfin.Api/Controllers/PluginsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/PluginsController.cs2
1 files changed, 2 insertions, 0 deletions
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));
}