anchor.diff:  get_reduce_type(Req) ->
       list_to_existing_atom(chttpd:qs_value(Req, "reduce", "true")).
   
  -parse_view_params(Req, Keys, ViewType) ->
  -    QueryList = chttpd:qs(Req),
  -    QueryParams =
  -    lists:foldl(fun({K, V}, Acc) ->
  -            parse_view_param(K, V) ++ Acc
  -        end, [], QueryList),
  -    IsMultiGet = case Keys of
  -        nil -> false;
  -        _ -> true
  -    end,
  +parse_view_params(Req, Keys, ViewType) when not is_list(Req) ->
  +    QueryParams = lists:flatmap(fun({K,V}) -> parse_view_param(K,V) end,
  +        chttpd:qs(Req)),
  +    parse_view_params(QueryParams, Keys, ViewType);
  +parse_view_params(QueryParams, Keys, ViewType) ->
  +    IsMultiGet = (Keys =/= nil),
       Args = #view_query_args{
           view_type=ViewType,
           multi_get=IsMultiGet,
  
positive.code:     },
      QueryArgs = lists:foldl(fun({K, V}, Args2) ->
          validate_view_query(K, V, Args2)
      end, Args, lists:reverse(QueryParams)), % Reverse to match QS order.
  
      GroupLevel = QueryArgs#view_query_args.group_level,
      case {ViewType, GroupLevel, IsMultiGet} of
  
negative.code: handle_view_req(#httpd{method='POST',
          path_parts=[_, _, _, _, ViewName]}=Req, Db, DDoc) ->
      {Fields} = chttpd:json_body_obj(Req),
      Queries = couch_util:get_value(<<"queries">>, Fields),
      Keys = couch_util:get_value(<<"keys">>, Fields),
      case {Queries, Keys} of
      {[_|_], undefined} ->
          multi_query_view(Req, Db, DDoc, ViewName, Queries);
      {undefined, [_|_]} ->
          design_doc_view(Req, Db, DDoc, ViewName, Keys);
      {undefined, undefined} ->
          throw({bad_request, "POST body must contain `keys` or `queries` field"});
      {undefined, _} ->
          throw({bad_request, "`keys` body member must be an array"});
      {_, undefined} ->
          throw({bad_request, "`queries` body member must be an array"});
      {_, _} ->
          throw({bad_request, "`keys` and `queries` are mutually exclusive"})
      end;
  
  handle_view_req(Req, _Db, _DDoc) ->
  