Browse Source

Fix trim input

Claus Vium 6 years ago
parent
commit
df5e87409a
1 changed files with 1 additions and 1 deletions
  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 contentType = options.ContentType;
             var etag = requestContext.Headers.Get("If-None-Match");
             var etag = requestContext.Headers.Get("If-None-Match");
-            var cacheKey = etag != null ? new Guid(etag.Trim("\"")) : Guid.Empty;
+            var cacheKey = etag != null ? new Guid(etag.Trim('\"')) : Guid.Empty;
             if (!cacheKey.Equals(Guid.Empty))
             if (!cacheKey.Equals(Guid.Empty))
             {
             {
                 var key = cacheKey.ToString("N");
                 var key = cacheKey.ToString("N");