Skip to content

Commit

Permalink
better handling of test profile for hackney insecure option (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
GwendalLaurent authored Nov 6, 2024
1 parent 4758b11 commit a4e427f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rebar3_grisp_io_api.erl
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ base_url(RState) ->

%% @doc adds the insecure options in the current profile is test (only for dev)
insecure_option(RState) ->
case rebar_state:current_profiles(RState) of
[default, test | _] ->
Profiles = rebar_state:current_profiles(RState),
case lists:member(test, Profiles) of
true ->
[insecure];
_ ->
[]
Expand Down

0 comments on commit a4e427f

Please sign in to comment.