summaryrefslogtreecommitdiff
path: root/src/rebar_prv_update.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_prv_update.erl')
-rw-r--r--src/rebar_prv_update.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_prv_update.erl b/src/rebar_prv_update.erl
index 4751e05..16987be 100644
--- a/src/rebar_prv_update.erl
+++ b/src/rebar_prv_update.erl
@@ -40,8 +40,8 @@ do(State) ->
Home = rebar_utils:home_dir(),
PackagesFile = filename:join([Home, ?CONFIG_DIR, "packages"]),
filelib:ensure_dir(PackagesFile),
- {ok, _RequestId} = httpc:request(get, {Url, []}, [], [{stream, TmpFile}
- ,{sync, true}]),
+ {ok, _RequestId} = httpc:request(get, {Url, [{"Accept", "application/erlang"}]},
+ [], [{stream, TmpFile}, {sync, true}]),
ok = ec_file:copy(TmpFile, PackagesFile)
catch
_:_ ->