Skip to content

Commit

Permalink
Update RZ.base.lib.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
rzander authored Mar 24, 2024
1 parent 81fe77e commit 3b6a6fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RZ.Base.Lib/RZ.base.lib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public JArray Catalog
public RuckZuck(string customerid = "", string URL = "", bool SendFeedback = true, ILogger<RuckZuck> logger = null)
{
//specify to use TLS 1.2 as default connection
System.Net.ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls13 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;


_feedback = SendFeedback;
Expand Down Expand Up @@ -407,7 +407,7 @@ public async Task<bool> Download(JObject Software, bool includeDependencies = tr
string sRes = RunPS(sURL);
if (sRes != null && sRes.StartsWith("http", StringComparison.CurrentCultureIgnoreCase))
{
sURL = sRes;
sURL = sRes.Trim();
_logger.LogDebug("URL: {URL}", sURL);
}
else
Expand Down

0 comments on commit 3b6a6fa

Please sign in to comment.