From cdb93c4c765a1dc3e1dfc2eaabdab4d6f3d91ccd Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 3 Feb 2023 22:39:41 -0600 Subject: [PATCH] Fixed: Correctly handle Content-Encoding headers Fixes #3315 --- src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs b/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs index 411b7e6d6..157e26b94 100644 --- a/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs +++ b/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs @@ -206,6 +206,9 @@ protected virtual void AddRequestHeaders(HttpRequestMessage webRequest, HttpHead case "Content-Type": AddContentHeader(webRequest, "Content-Type", header.Value); break; + case "Content-Encoding": + AddContentHeader(webRequest, "Content-Encoding", header.Value); + break; case "Date": webRequest.Headers.Remove("Date"); webRequest.Headers.Date = HttpHeader.ParseDateTime(header.Value);