Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Commit 289a9e4

Browse files
ChristianKurzstaticfloat
authored andcommitted
Fix: Allow downloads on windows with proxy (#168)
1 parent 480eed2 commit 289a9e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/PlatformEngines.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ function probe_platform_engines!(;verbose::Bool = false)
364364
[System.Net.ServicePointManager]::SecurityProtocol =
365365
[System.Net.SecurityProtocolType]::Tls12;
366366
\$webclient = (New-Object System.Net.Webclient);
367+
\$webclient.UseDefaultCredentials = \$true;
368+
\$webclient.Proxy.Credentials = \$webclient.Credentials;
367369
\$webclient.Headers.Add("user-agent", "$agent");
368370
\$webclient.DownloadFile("$url", "$path")
369371
"""

0 commit comments

Comments
 (0)