summaryrefslogtreecommitdiff
path: root/src/rebar_pkg_resource.erl
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-06-29 19:57:30 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-06-29 19:57:30 -0500
commitc88a6d3f231c312ff317719bcdbcd55e188ce333 (patch)
tree06829e7ba6cf844829576d8aef7f8678f1586b92 /src/rebar_pkg_resource.erl
parent67d3f26df51375d59bf8fee6e4f47f655c6e23fa (diff)
parent1c66f0eb9ff8504bd92960cb7573da853d79b5ab (diff)
Merge pull request #565 from tsloughter/hex_http_profile
setup hex httpc profile and http opts. needed also for proxy
Diffstat (limited to 'src/rebar_pkg_resource.erl')
-rw-r--r--src/rebar_pkg_resource.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_pkg_resource.erl b/src/rebar_pkg_resource.erl
index 59ce0dc..5b37788 100644
--- a/src/rebar_pkg_resource.erl
+++ b/src/rebar_pkg_resource.erl
@@ -95,7 +95,8 @@ make_vsn(_) ->
request(Url, ETag) ->
case httpc:request(get, {Url, [{"if-none-match", ETag} || ETag =/= false]},
[{relaxed, true}],
- [{body_format, binary}]) of
+ [{body_format, binary}],
+ hex) of
{ok, {{_Version, 200, _Reason}, Headers, Body}} ->
?DEBUG("Successfully downloaded ~s", [Url]),
{"etag", ETag1} = lists:keyfind("etag", 1, Headers),