Skip to content

Commit

Permalink
Don't include NextMarker element when not truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
shino committed Aug 11, 2015
1 parent bbee10a commit 45387fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/riak_cs_xml.erl
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ list_objects_response_to_xml(Resp) ->
%% the `NextMarker' element if it's not `undefined'
[make_external_node('NextMarker', NextMarker) ||
NextMarker <- [Resp?LORESP.next_marker],
NextMarker =/= undefined] ++
NextMarker =/= undefined,
Resp?LORESP.is_truncated] ++
[make_external_node('MaxKeys', Resp?LORESP.max_keys),
make_external_node('Delimiter', Resp?LORESP.delimiter),
make_external_node('IsTruncated', Resp?LORESP.is_truncated)] ++
Expand Down

0 comments on commit 45387fd

Please sign in to comment.