mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-30 20:20:34 +12:00
Update FluentFTP
This commit is contained in:
parent
a73193adfe
commit
0eb54f1937
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue