anchor.diff:  %% @doc Execute the link walking query, and build the response body.
   %%      This function has to explicitly set the Content-Type header,
   %%      because Webmachine doesn't know to add the "boundary" parameter to it.
  -to_multipart_mixed(RD, Ctx=#ctx{start=Start, client=C}) ->
  -    Results = execute_query(C, [Start], extract_query(RD)),
  +to_multipart_mixed(RD, Ctx=#ctx{linkquery=Query, start=Start, client=C}) ->
  +    Results = execute_query(C, [Start], Query),
       Boundary = riak_core_util:unique_id_62(),
       {multipart_mixed_encode(Results, Boundary, Ctx),
        %% reset content-type now that we now what it is
  
positive.code:        Prefix,
         riak_object:bucket(RiakObject),
         {MD,V})].
  
negative.code:               riak=proplists:get_value(riak, Props),
                cache_secs=proplists:get_value(cache_secs, Props, 600)
               }}.
  
  %% @spec malformed_request(reqdata(), context()) ->
  %%           {boolean(), reqdata(), context()}
  %% @doc Parse link walk query and determine if it's
  %%      valid.
  malformed_request(RD, Ctx) ->
      case catch extract_query(RD) of
          {'EXIT', _} ->
              RD1 = send_malformed_error(RD),
              {true, RD1, Ctx};
          Query0 ->
              Query = case Query0 of
                          [{Bucket, Tag, false}] ->
                              [{Bucket, Tag, true}];
                          _ ->
                              Query0
                      end,
              {false, RD, Ctx#ctx{linkquery=Query}}
      end.
  
  
  %% @spec service_available(reqdata(), context()) ->
  %%          {boolean(), reqdata(), context()}
  