浏览代码

Trim quotes from If-None-Match

Claus Vium 6 年之前
父节点
当前提交
94789860b1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Emby.Server.Implementations/HttpServer/HttpResultFactory.cs

+ 1 - 1
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");