summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortothlac <Laszlo.Toth@otpbank.hu>2018-04-09 17:45:51 +0200
committertothlac <Laszlo.Toth@otpbank.hu>2018-04-09 17:45:51 +0200
commite754621e73db9533f9670124206b91869b2b35b6 (patch)
tree054572693a57d143a87a24558546ec1e84394862
parentd6cec1adfdd70fccf4d0cde357295ed847814fb8 (diff)
(#1741): Fix quotes in etag values
-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 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