From 94789860b1217a500e50d74ba5dbec26bb61a8d7 Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Tue, 22 Jan 2019 22:37:26 +0100 Subject: Trim quotes from If-None-Match --- Emby.Server.Implementations/HttpServer/HttpResultFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Emby.Server.Implementations/HttpServer/HttpResultFactory.cs') diff --git a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs index dee417b43..370c76ec9 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"); -- cgit v1.2.3