diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-04-19 10:27:23 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-04-19 10:27:23 +0200 |
| commit | 8a1ad14faf274780a13b4f74d08ccb9f8316ae73 (patch) | |
| tree | f31dd5aa047bb976d6aea820bd17bcaae286c171 | |
| parent | e71bb7e9047748a0dca48c83c16c7a104545840e (diff) | |
Fix review comment
| -rw-r--r-- | Jellyfin.Api/Controllers/ImageController.cs | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |
