Skip to content

Commit

Permalink
Merge pull request #46 from omarroth/patch-2
Browse files Browse the repository at this point in the history
Allow key_count to be empty
  • Loading branch information
taylorfinnell committed Jan 18, 2019
2 parents 0e0d1aa + 5c249d5 commit 185088e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/awscr-s3/responses/list_objects_v2.cr
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module Awscr::S3::Response
objects << Object.new(key, size, etag)
end

new(name, prefix, key_count.to_i, max_keys.to_i, truncated == "true", token, objects)
new(name, prefix, key_count.to_i? || 0, max_keys.to_i, truncated == "true", token, objects)
end

# The list of obects
Expand Down

0 comments on commit 185088e

Please sign in to comment.