From fc1bc78250432059edd552679b3efbb0e99a302c Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 7 Mar 2019 12:21:31 -0600 Subject: Fix powershell TLS issue with download --- nimterop/git.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimterop/git.nim b/nimterop/git.nim index c51c079..9998a44 100644 --- a/nimterop/git.nim +++ b/nimterop/git.nim @@ -68,7 +68,7 @@ proc downloadUrl*(url, outdir: string) = echo "Downloading " & file mkDir(outdir) var cmd = if defined(Windows): - "powershell wget $# -OutFile $#" + "powershell [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; wget $# -OutFile $#" else: "curl $# -o $#" discard execAction(cmd % [url, outdir/file]) -- cgit v1.2.3