mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 04:59:35 -07:00
Fixed: Don't read response stream if it equals Stream.Null
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
b5ecc4d209
commit
328795cb1f
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using NzbDrone.Common.EnvironmentInfo;
|
using NzbDrone.Common.EnvironmentInfo;
|
||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
|
@ -101,7 +102,7 @@ namespace NzbDrone.Common.Http.Dispatchers
|
||||||
|
|
||||||
using (var responseStream = httpWebResponse.GetResponseStream())
|
using (var responseStream = httpWebResponse.GetResponseStream())
|
||||||
{
|
{
|
||||||
if (responseStream != null)
|
if (responseStream != null && responseStream != Stream.Null)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue