anchor.diff:          undefined -> [];
           Heads ->
               BucketLink = lists:flatten(format_link(Prefix, B)),
  -            {ok, Re} = re:compile("</([^/]+)/([^/]+)/([^/]+)>; riaktag=\"([^\"]+)\""),
  +            {ok, Re} = re:compile("</([^/]+)/([^/]+)/([^/]+)>;(\ )?riaktag=\"([^\"]+)\""),
               lists:map(
                 fun(L) ->
                         {match,[InPrefix,Bucket,Key,Tag]} =
  
positive.code:          error -> []
       end,
       "\n",V].
      
  
  %% @spec select_doc(context()) -> {metadata(), value()}|multiple_choices
  %% @doc Selects the "proper" document:
  
negative.code: stream_keys(ReqId) ->
      receive
          {ReqId, {keys, Keys}} ->
              {mochijson2:encode({struct, [{<<"keys">>, Keys}]}), fun() -> stream_keys(ReqId) end};
          {ReqId, done} -> {mochijson2:encode({struct, [{<<"keys">>, []}]}), done}
      end.
  
  