Ver a proveniência

Merge pull request #1742 from tothlac/master

(#1741): Fix quotes in etag values
pull/1745/head
Fred Hebert há 7 anos
committed by GitHub
ascendente
cometimento
cb743f76cb
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 2 adições e 1 eliminações
  1. +2
    -1
      src/rebar_pkg_resource.erl

+ 2
- 1
src/rebar_pkg_resource.erl Ver ficheiro

@ -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

Carregando…
Cancelar
Guardar