diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2020-08-13 13:01:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-13 13:01:43 -0400 |
| commit | 5480674c4fcf279bab640f24131d188a6a089eb4 (patch) | |
| tree | 95f2b9f47176334f74f774563a35aa68275cc9dd /Emby.Server.Implementations/HttpServer/HttpResultFactory.cs | |
| parent | 32d465742989520b8cd9ecdad759ed9cfc128a54 (diff) | |
| parent | 593dbcabffd1a0c09af64f3a19ed46c97d626559 (diff) | |
Merge pull request #3838 from Bond-009/memorystream
MemoryStream optimizations
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/HttpResultFactory.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/HttpResultFactory.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs index 970f5119c..688216373 100644 --- a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs +++ b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs @@ -105,7 +105,7 @@ namespace Emby.Server.Implementations.HttpServer responseHeaders = new Dictionary<string, string>(); } - if (addCachePrevention && !responseHeaders.TryGetValue(HeaderNames.Expires, out string expires)) + if (addCachePrevention && !responseHeaders.TryGetValue(HeaderNames.Expires, out _)) { responseHeaders[HeaderNames.Expires] = "0"; } @@ -326,7 +326,8 @@ namespace Emby.Server.Implementations.HttpServer return GetHttpResult(request, ms, contentType, true, responseHeaders); } - private IHasHeaders GetCompressedResult(byte[] content, + private IHasHeaders GetCompressedResult( + byte[] content, string requestedCompressionType, IDictionary<string, string> responseHeaders, bool isHeadRequest, |
