From 328795cb1fb2878fe3e55a984bc3b72095e23d1d Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 14 Sep 2018 22:44:56 -0400 Subject: [PATCH] Fixed: Don't read response stream if it equals Stream.Null Co-Authored-By: Mark McDowall --- src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs b/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs index 0ed952fdc..370e98a21 100644 --- a/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs +++ b/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs @@ -1,4 +1,5 @@ using System; +using System.IO; using System.Net; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Extensions; @@ -101,7 +102,7 @@ namespace NzbDrone.Common.Http.Dispatchers using (var responseStream = httpWebResponse.GetResponseStream()) { - if (responseStream != null) + if (responseStream != null && responseStream != Stream.Null) { try {