Follow redirects in downloadUrl

This commit is contained in:
Ganesh Viswanathan 2019-05-08 23:35:31 -05:00
commit afc9991002

View file

@ -68,7 +68,7 @@ proc downloadUrl*(url, outdir: string) =
var cmd = if defined(Windows):
"powershell [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; wget $# -OutFile $#"
else:
"curl $# -o $#"
"curl -L $# -o $#"
discard execAction(cmd % [url, (outdir/file).quoteShell])
if ext == ".zip":