From 8a1ad14faf274780a13b4f74d08ccb9f8316ae73 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Sun, 19 Apr 2026 10:27:23 +0200 Subject: [PATCH] Fix review comment --- Jellyfin.Api/Controllers/ImageController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Api/Controllers/ImageController.cs b/Jellyfin.Api/Controllers/ImageController.cs index 88cd6724bb..ae792142b4 100644 --- a/Jellyfin.Api/Controllers/ImageController.cs +++ b/Jellyfin.Api/Controllers/ImageController.cs @@ -2039,7 +2039,9 @@ public class ImageController : BaseJellyfinApiController // Check If-None-Match header for ETag-based validation (preferred over If-Modified-Since) var ifNoneMatch = Request.Headers[HeaderNames.IfNoneMatch].ToString(); - if (!string.IsNullOrEmpty(ifNoneMatch) && (ifNoneMatch == $"\"{tag}\"" || ifNoneMatch == tag)) + if (!string.IsNullOrEmpty(ifNoneMatch) + && (string.Equals(ifNoneMatch, $"\"{tag}\"", StringComparison.Ordinal) + || string.Equals(ifNoneMatch, tag, StringComparison.Ordinal))) { Response.StatusCode = StatusCodes.Status304NotModified; return new ContentResult();