Merge pull request #18 from greven/patch-1

Remove repeated proxy code
This commit is contained in:
Max Veytsman
2022-09-30 18:20:45 -04:00
committed by GitHub

View File

@ -71,12 +71,6 @@ defmodule Mix.Tasks.Heroicons.Update do
:httpc.set_options([{:proxy, {{String.to_charlist(host), port}, []}}])
end
if proxy = System.get_env("HTTPS_PROXY") || System.get_env("https_proxy") do
Logger.debug("Using HTTPS_PROXY: #{proxy}")
%{host: host, port: port} = URI.parse(proxy)
:httpc.set_options([{:https_proxy, {{String.to_charlist(host), port}, []}}])
end
# https://erlef.github.io/security-wg/secure_coding_and_deployment_hardening/inets
cacertfile = CAStore.file_path() |> String.to_charlist()