Skip to content

The Free Software Media System - Server Backend & API

Trim quotes from If-None-Match

Claus Vium94789860b121
diff --git a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs
index dee417b43f..370c76ec9a 100644
--- a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs
+++ b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs
@@ -535,7 +535,7 @@ namespace Emby.Server.Implementations.HttpServer
var contentType = options.ContentType;
var etag = requestContext.Headers.Get("If-None-Match");
- var cacheKey = etag != null ? new Guid(etag) : Guid.Empty;
+ var cacheKey = etag != null ? new Guid(etag.Trim("\"")) : Guid.Empty;
if (!cacheKey.Equals(Guid.Empty))
{
var key = cacheKey.ToString("N");