Update FluentFTP

This commit is contained in:
Jaex 2022-08-25 08:51:40 +03:00
parent a73193adfe
commit 0eb54f1937
2 changed files with 5 additions and 3 deletions

View file

@ -632,6 +632,8 @@ public static void DownloadFile(string url, string filePath)
public static string DownloadString(string url, bool noCache = true)
{
string response = null;
if (!string.IsNullOrEmpty(url))
{
using (WebClient wc = new WebClient())
@ -644,11 +646,11 @@ public static string DownloadString(string url, bool noCache = true)
wc.Encoding = Encoding.UTF8;
wc.Headers.Add(HttpRequestHeader.UserAgent, ShareXResources.UserAgent);
wc.Proxy = HelpersOptions.CurrentProxy.GetWebProxy();
return wc.DownloadString(url);
response = wc.DownloadString(url);
}
}
return null;
return response;
}
}
}

View file

@ -1150,7 +1150,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentFTP">
<Version>37.0.5</Version>
<Version>39.4.0</Version>
</PackageReference>
<PackageReference Include="MegaApiClient">
<Version>1.10.2</Version>