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

Fix: Allow downloads on windows with proxy #168

Merged
merged 1 commit into from
Jul 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/PlatformEngines.jl
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,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", "$agent");
\$webclient.DownloadFile("$url", "$path")
"""
Expand Down