Commits

Anonymous committed 47e43c9

fix already-computed-etag case of generate_etag

  • Participants
  • Parent commits 533cd97

Comments (0)

Files changed (1)

src/jiak_resource.erl

     make_bucket_etag(ReqData, Context);
 generate_etag(ReqData, Context=#ctx{etag=undefined}) ->
     make_object_etag(ReqData, Context);
-generate_etag(_, #ctx{etag=ETag}) -> ETag.
+generate_etag(RD, Ctx=#ctx{etag=ETag}) -> {ETag, RD, Ctx}.
 
 %% @spec make_bucket_etag(webmachine:wrq(), context()) ->
 %%          {string(), webmachine:wrq(), context()}