diff options
author | Andrey Kanyuka <kanyuka.aa@gmail.com> | 2017-11-03 14:02:16 +0200 |
---|---|---|
committer | Andrey Kanyuka <kanyuka.aa@gmail.com> | 2017-11-03 14:02:16 +0200 |
commit | bf1597ba280155f1004b5a2bfd7c553d8d102860 (patch) | |
tree | 37e80e1df610304fdefc7eca9ddff5b4b702bbfb | |
parent | 557623ba897d580702034bd76f799b5107d72c6b (diff) |
fixed handling of proxy username and password when fetching registry
-rw-r--r-- | src/rebar_prv_update.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_prv_update.erl b/src/rebar_prv_update.erl index a019c5a..9d632d4 100644 --- a/src/rebar_prv_update.erl +++ b/src/rebar_prv_update.erl @@ -51,9 +51,10 @@ do(State) -> CDN = rebar_state:get(State, rebar_packages_cdn, ?DEFAULT_CDN), case rebar_utils:url_append_path(CDN, ?REMOTE_REGISTRY_FILE) of {ok, Url} -> + HttpOptions = rebar_utils:get_proxy_auth(), ?DEBUG("Fetching registry from ~p", [Url]), case httpc:request(get, {Url, [{"User-Agent", rebar_utils:user_agent()}]}, - [], [{stream, TmpFile}, {sync, true}], + HttpOptions, [{stream, TmpFile}, {sync, true}], rebar) of {ok, saved_to_file} -> {ok, Data} = file:read_file(TmpFile), |