diff options
| author | telans <telans@protonmail.com> | 2020-06-19 21:57:37 +1200 |
|---|---|---|
| committer | telans <telans@protonmail.com> | 2020-06-20 18:13:11 +1200 |
| commit | afe09612e82a49c4021fbc2ceddf1816db9f959d (patch) | |
| tree | 69380e1835fd73aa00a3ec7b92099c0506bb1f35 /Emby.Server.Implementations/HttpServer/HttpResultFactory.cs | |
| parent | e8e5208fbd9484a1b37eed5dece524f108886fe0 (diff) | |
fix SA1119
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/HttpResultFactory.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/HttpResultFactory.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs index ad31b3e1e..7b7da703b 100644 --- a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs +++ b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs @@ -426,7 +426,7 @@ namespace Emby.Server.Implementations.HttpServer /// </summary> private object GetCachedResult(IRequest requestContext, IDictionary<string, string> responseHeaders, StaticResultOptions options) { - bool noCache = (requestContext.Headers[HeaderNames.CacheControl].ToString()).IndexOf("no-cache", StringComparison.OrdinalIgnoreCase) != -1; + bool noCache = requestContext.Headers[HeaderNames.CacheControl].ToString().IndexOf("no-cache", StringComparison.OrdinalIgnoreCase) != -1; AddCachingHeaders(responseHeaders, options.CacheDuration, noCache, options.DateLastModified); if (!noCache) |
