1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-17 21:26:22 -04:00

Don't read response stream if it equals Stream.Null

This commit is contained in:
Mark McDowall
2018-09-14 17:50:13 -07:00
parent 4a052708c8
commit f304421b3d

View File

@@ -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
{