Explorar el Código

Merge pull request #1742 from tothlac/master

(#1741): Fix quotes in etag values
pull/1745/head
Fred Hebert hace 7 años
cometido por GitHub
padre
commit
cb743f76cb
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      src/rebar_pkg_resource.erl

+ 2
- 1
src/rebar_pkg_resource.erl Ver fichero

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

Cargando…
Cancelar
Guardar