We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30a5914 commit 404e95bCopy full SHA for 404e95b
lib/mix/lib/mix/utils.ex
@@ -408,17 +408,17 @@ defmodule Mix.Utils do
408
end
409
410
defp proxy(proxy) do
411
- uri = URI.parse(proxy)
412
- :ok = :httpc.set_options([{ proxy_scheme(uri.scheme),
413
- { { uri.host |> String.to_char_list, uri.port }, [] } }], :mix)
414
- end
415
-
416
- defp proxy_scheme(scheme) do
417
- case scheme do
418
- "http" -> :proxy
419
- "https" -> :https_proxy
420
421
+ uri = URI.parse(proxy)
+ :ok = :httpc.set_options([{proxy_scheme(uri.scheme),
+ {{String.to_char_list(uri.host), uri.port}, []}}], :mix)
+ end
+
+ defp proxy_scheme(scheme) do
+ case scheme do
+ "http" -> :proxy
+ "https" -> :https_proxy
422
423
defp file?(path) do
424
File.regular?(path)
0 commit comments