From 24c6d3f4b397d1988a90bb611696ca6e5c27f98f Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 14 Sep 2018 17:50:13 -0700 Subject: [PATCH] Don't read response stream if it equals Stream.Null --- 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 4a7269468..70ee66390 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 {