Fixed one part of the oof

This commit is contained in:
2018-08-14 20:33:56 +01:00
parent 2217762423
commit 3ad4abdaf8
6 changed files with 142 additions and 11 deletions

View File

@@ -52,16 +52,7 @@ namespace SysEx.Net
var client = CreateWebRequest(url);
var resp = (HttpWebResponse)(await client.GetResponseAsync());
if (resp.StatusCode == (HttpStatusCode.OK | HttpStatusCode.Redirect))
{
var uri = resp.ResponseUri;
resp.Dispose();
client.Abort();
return uri;
}
resp.Dispose();
client.Abort();
return null;
return resp.ResponseUri ?? null;
}
catch
{