mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-10 05:34:13 +00:00
Found another stupid check that needs to be fixed
This commit is contained in:
parent
77c13fcd8f
commit
08d75a483d
1 changed files with 2 additions and 3 deletions
|
@ -479,9 +479,8 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
{
|
||||
HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;
|
||||
request.Method = "HEAD";
|
||||
HttpWebResponse response = request.GetResponse() as HttpWebResponse;
|
||||
response.Close();
|
||||
return (response.StatusCode == HttpStatusCode.OK);
|
||||
using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
|
||||
return (response.StatusCode == HttpStatusCode.OK);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue