mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Update FluentFTP
This commit is contained in:
parent
a73193adfe
commit
0eb54f1937
2 changed files with 5 additions and 3 deletions
|
@ -632,6 +632,8 @@ public static void DownloadFile(string url, string filePath)
|
||||||
|
|
||||||
public static string DownloadString(string url, bool noCache = true)
|
public static string DownloadString(string url, bool noCache = true)
|
||||||
{
|
{
|
||||||
|
string response = null;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(url))
|
if (!string.IsNullOrEmpty(url))
|
||||||
{
|
{
|
||||||
using (WebClient wc = new WebClient())
|
using (WebClient wc = new WebClient())
|
||||||
|
@ -644,11 +646,11 @@ public static string DownloadString(string url, bool noCache = true)
|
||||||
wc.Encoding = Encoding.UTF8;
|
wc.Encoding = Encoding.UTF8;
|
||||||
wc.Headers.Add(HttpRequestHeader.UserAgent, ShareXResources.UserAgent);
|
wc.Headers.Add(HttpRequestHeader.UserAgent, ShareXResources.UserAgent);
|
||||||
wc.Proxy = HelpersOptions.CurrentProxy.GetWebProxy();
|
wc.Proxy = HelpersOptions.CurrentProxy.GetWebProxy();
|
||||||
return wc.DownloadString(url);
|
response = wc.DownloadString(url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return response;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1150,7 +1150,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="FluentFTP">
|
<PackageReference Include="FluentFTP">
|
||||||
<Version>37.0.5</Version>
|
<Version>39.4.0</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="MegaApiClient">
|
<PackageReference Include="MegaApiClient">
|
||||||
<Version>1.10.2</Version>
|
<Version>1.10.2</Version>
|
||||||
|
|
Loading…
Reference in a new issue