diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-04-09 10:17:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 10:17:29 -0700 |
commit | cb743f76cbc26ac780066d285329e8a6c8330605 (patch) | |
tree | 054572693a57d143a87a24558546ec1e84394862 /src/rebar_pkg_resource.erl | |
parent | d6cec1adfdd70fccf4d0cde357295ed847814fb8 (diff) | |
parent | e754621e73db9533f9670124206b91869b2b35b6 (diff) |
Merge pull request #1742 from tothlac/master
(#1741): Fix quotes in etag values
Diffstat (limited to 'src/rebar_pkg_resource.erl')
-rw-r--r-- | src/rebar_pkg_resource.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_pkg_resource.erl b/src/rebar_pkg_resource.erl index 60ad8f9..7d42ccd 100644 --- a/src/rebar_pkg_resource.erl +++ b/src/rebar_pkg_resource.erl @@ -109,7 +109,8 @@ make_vsn(_) -> request(Url, ETag) -> HttpOptions = [{ssl, ssl_opts(Url)}, {relaxed, true} | rebar_utils:get_proxy_auth()], - case httpc:request(get, {Url, [{"if-none-match", ETag} || ETag =/= false]++[{"User-Agent", rebar_utils:user_agent()}]}, + case httpc:request(get, {Url, [{"if-none-match", "\"" ++ ETag ++ "\""} || ETag =/= false]++ + [{"User-Agent", rebar_utils:user_agent()}]}, HttpOptions, [{body_format, binary}], rebar) of |