mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
Fix trim input
This commit is contained in:
parent
94789860b1
commit
df5e87409a
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue