fixed: HttpClient would fail with an unrelated exception

pull/3113/head
Keivan Beigi 10 years ago
parent 73963011ee
commit fde38938b8

@ -80,6 +80,11 @@ namespace NzbDrone.Common.Http
catch (WebException e) catch (WebException e)
{ {
httpWebResponse = (HttpWebResponse)e.Response; httpWebResponse = (HttpWebResponse)e.Response;
if (httpWebResponse == null)
{
throw;
}
} }
Byte[] data = null; Byte[] data = null;

Loading…
Cancel
Save