소스 검색

quote etag in header sent to hex_core

pull/1882/head
Tristan Sloughter 6 년 전
부모
커밋
881ce8f834
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/rebar_pkg_resource.erl

+ 2
- 2
src/rebar_pkg_resource.erl 파일 보기

@ -134,8 +134,8 @@ make_vsn(_, _) ->
%%------------------------------------------------------------------------------
-spec request(rebar_hex_repos:repo(), binary(), binary(), false | binary())
-> {ok, cached} | {ok, binary(), binary()} | error.
request(Config, Name, Version, ETag) ->
Config1 = Config#{http_etag => ETag},
request(Config, Name, Version, ETag) ->
Config1 = Config#{http_etag => <<"\"", ETag/binary, "\"">>},
try hex_repo:get_tarball(Config1, Name, Version) of
{ok, {200, #{<<"etag">> := ETag1}, Tarball}} ->
{ok, Tarball, rebar_utils:to_binary(rebar_string:trim(rebar_utils:to_list(ETag1), both, [$"]))};

불러오는 중...
취소
저장