diff options
| author | Vasily <just.one.man@yandex.ru> | 2020-04-27 19:03:42 +0300 |
|---|---|---|
| committer | Vasily <just.one.man@yandex.ru> | 2020-04-27 19:03:42 +0300 |
| commit | 655208d375bce4a5c82bf8da87d5d72814a8da83 (patch) | |
| tree | 8b2ee1b4d79a400df9ba8262c460c94a2313d379 /Emby.Server.Implementations/HttpServer/HttpResultFactory.cs | |
| parent | aa6d52277dfbc074016d7623f114325a5edc3cbe (diff) | |
Now parse date in header correctly as being in UTC
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 464ca3a0b..2e9ecc4ae 100644 --- a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs +++ b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs @@ -426,7 +426,7 @@ namespace Emby.Server.Implementations.HttpServer if (!noCache) { - if (!DateTime.TryParseExact(requestContext.Headers[HeaderNames.IfModifiedSince], HttpDateFormat, _enUSculture, DateTimeStyles.AssumeUniversal, out var ifModifiedSinceHeader)) + if (!DateTime.TryParseExact(requestContext.Headers[HeaderNames.IfModifiedSince], HttpDateFormat, _enUSculture, DateTimeStyles.AssumeUniversal | DateTimeStyles.AdjustToUniversal, out var ifModifiedSinceHeader)) { _logger.LogDebug("Failed to parse If-Modified-Since header date: {0}", requestContext.Headers[HeaderNames.IfModifiedSince]); return null; |
