Skip to content

Commit

Permalink
Fix SSL Error in UpgradeChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham Downs committed Mar 2, 2021
1 parent b36e7ba commit f321412
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SplitPdf.UpgradeChecker/UpgradeRequiredChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public LatestVersionInfo GetLatestVersionInfoFromUrl(string url)
{
using (var client = new WebClient())
{
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
var rawString = client.DownloadString(url);

var elements = rawString.Split('|');
Expand Down

0 comments on commit f321412

Please sign in to comment.