Skip to content

Commit

Permalink
EDIT: use WebClient for now
Browse files Browse the repository at this point in the history
  • Loading branch information
filip2cz committed Jul 21, 2024
1 parent af2731c commit 9922c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ public async Task<string> MakeWebRequest(string url)
int i = 0;
while (i < 3)
{
using (HttpClient client = new HttpClient())
using (WebClient client = new WebClient())
{
try
{
response = await client.GetStringAsync(url);
response = client.DownloadString(url);
i = 3;
}
catch (Exception ex)
Expand Down

0 comments on commit 9922c85

Please sign in to comment.