1. Jay Baird
  2. riak

Commits

Rusty Klophaus  committed 59f7651

Update raw_http_resource to set allow_mult bucket property correctly.

  • Participants
  • Parent commits 1727e98
  • Branches default

Comments (0)

Files changed (2)

File apps/riak/src/raw_http.hrl

View file
 -define(JSON_JSANON,   <<"jsanon">>).
 -define(JSON_JSBUCKET, <<"bucket">>).
 -define(JSON_JSKEY,    <<"key">>).
+-define(JSON_ALLOW_MULT, <<"allow_mult">>).
+
 
 %% Names of HTTP query parameters
 -define(Q_PROPS, "props").

File apps/riak/src/raw_http_resource.erl

View file
                     list_to_existing_atom(
                       binary_to_list(
                         proplists:get_value(?JSON_FUN, Props)))}};
+erlify_bucket_prop({?JSON_ALLOW_MULT, Value}) ->
+    {allow_mult, (Value == <<"true">>)};
 erlify_bucket_prop({Prop, Value}) ->
     {list_to_existing_atom(binary_to_list(Prop)), Value}.