Skip to content

Commit e059eb5

Browse files
author
Graham Downs
committed
Fix SSL Error in UpgradeChecker
1 parent 5ed1580 commit e059eb5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

SplitPdf.UpgradeChecker/UpgradeRequiredChecker.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public LatestVersionInfo GetLatestVersionInfoFromUrl(string url)
4444
{
4545
using (var client = new WebClient())
4646
{
47+
ServicePointManager.Expect100Continue = true;
48+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
4749
var rawString = client.DownloadString(url);
4850

4951
var elements = rawString.Split('|');

0 commit comments

Comments
 (0)