Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the max part number limitation. #957

Merged
merged 4 commits into from
Aug 26, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update specs
  • Loading branch information
ksauzz committed Aug 22, 2014
commit 7599c4e27cc42567a6c4347126a8ccfe99165d49
3 changes: 2 additions & 1 deletion src/riak_cs_wm_object_upload_part.erl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ init(Ctx) ->
%% {ok, Ctx#context{local_context=#key_context{}}}.
{ok, Ctx#context{local_context=#key_context{}}}.

-spec malformed_request(#wm_reqdata{}, #context{}) -> {false, #wm_reqdata{}, #context{}}.
-spec malformed_request(#wm_reqdata{}, #context{}) ->
{false, #wm_reqdata{}, #context{}} | {{halt, pos_integer()}, #wm_reqdata{}, #context{}}.
malformed_request(RD,Ctx) ->
Method = wrq:method(RD),
case Method == 'PUT' andalso not valid_part_number(RD) of
Expand Down