Skip to content

Commit

Permalink
Added support for TLS1.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
PromaRifat committed Jul 6, 2020
1 parent 6553d6c commit 9cbc411
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Magpie/Magpie/Services/DefaultRemoteContentDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ namespace MagpieUpdater.Services
{
internal class DefaultRemoteContentDownloader : IRemoteContentDownloader
{
public DefaultRemoteContentDownloader()
{
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3;
}
public async Task<string> DownloadStringContent(string url, IDebuggingInfoLogger logger = null)
{
try
Expand Down Expand Up @@ -48,4 +53,4 @@ public async Task<string> DownloadFile(string sourceUrl, string destinationPath,
}
}
}
}
}

0 comments on commit 9cbc411

Please sign in to comment.