diff --git a/src/rebar_pkg_resource.erl b/src/rebar_pkg_resource.erl index 91c82a1c..23e9a6f7 100644 --- a/src/rebar_pkg_resource.erl +++ b/src/rebar_pkg_resource.erl @@ -29,10 +29,9 @@ -spec init(atom(), rebar_state:t()) -> {ok, rebar_resource_v2:resource()}. init(Type, State) -> {ok, Vsn} = application:get_key(rebar, vsn), - BaseConfig = #{http_adapter => r3_hex_http_httpc, + BaseConfig = #{http_adapter => {r3_hex_http_httpc, #{profile => rebar}}, http_user_agent_fragment => - <<"(rebar3/", (list_to_binary(Vsn))/binary, ") (httpc)">>, - http_adapter_config => #{profile => rebar}}, + <<"(rebar3/", (list_to_binary(Vsn))/binary, ") (httpc)">>}, Repos = rebar_hex_repos:from_state(BaseConfig, State), Resource = rebar_resource_v2:new(Type, ?MODULE, #{repos => Repos, base_config => BaseConfig}),