mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Trim quotes from If-None-Match
This commit is contained in:
parent
fd6d35e1d0
commit
94789860b1
@ -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) : 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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user