anchor.diff:                                          LinkRD, UserMeta);
                           error -> LinkRD
                       end,
  -            {Doc, encode_vclock_header(UserMetaRD, Ctx), Ctx};
  +            {encode_value(Doc), encode_vclock_header(UserMetaRD, Ctx), Ctx};
           multiple_choices ->
               throw({unexpected_code_path, ?MODULE, produce_doc_body, multiple_choices})
       end.
  
positive.code:                                   {ok, Ls} -> Ls;
                                    error -> []
                                end]])),
      [?HEAD_CTYPE, ": ",dict:fetch(?MD_CTYPE, MD),
       case dict:find(?MD_CHARSET, MD) of
           {ok, CS} -> ["; charset=",CS];
           error -> []
  
negative.code:     LinkMD = dict:store(?MD_LINKS, L, EncMD),
      UserMetaMD = dict:store(?MD_USERMETA, UserMeta, LinkMD),
      MDDoc = riak_object:update_metadata(VclockDoc, UserMetaMD),
      Doc = riak_object:update_value(MDDoc, accept_value(CType, wrq:req_body(RD))),
      Options = case wrq:get_qs_value(?Q_RETURNBODY, RD) of ?Q_TRUE -> [returnbody]; _ -> [] end,
      case C:put(Doc, Ctx#ctx.w, Ctx#ctx.dw, 60000, Options) of
          {error, precommit_fail} ->
  