Skip to content

Commit

Permalink
use default proxy credentials when downloading via powershell
Browse files Browse the repository at this point in the history
(cherry picked from commit d495fed46606ff29685135bc63bffb5f7cc6d463)
  • Loading branch information
KristofferC committed Sep 4, 2018
1 parent 90ca61b commit 714b2c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stdlib/Pkg/src/PlatformEngines.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ function probe_platform_engines!(;verbose::Bool = false)
[System.Net.ServicePointManager]::SecurityProtocol =
[System.Net.SecurityProtocolType]::Tls12;
\$webclient = (New-Object System.Net.Webclient);
\$webclient.UseDefaultCredentials = \$true;
\$webclient.Proxy.Credentials = \$webclient.Credentials;
\$webclient.Headers.Add("user-agent", \"Pkg.jl (https://github.com/JuliaLang/Pkg.jl)\");
\$webclient.DownloadFile(\"$url\", \"$path\")
"""
Expand Down

0 comments on commit 714b2c3

Please sign in to comment.