taylorfinnell / awscr-s3

A Crystal shard for S3.
https://taylorfinnell.github.io/awscr-s3/
MIT License
81 stars 48 forks source link

Allow key_count to be empty #46

Closed omarroth closed 5 years ago

omarroth commented 5 years ago

For ListObjectsV2, the key_count can sometimes be empty or non-existent. This is a quick fix to add a default value if it's not a valid integer.

taylorfinnell commented 5 years ago

Thank you! This works even if KeyCount is absent from the response?

omarroth commented 5 years ago

Yep!

omarroth commented 5 years ago

I think you mean to merge patch-2 into master.

taylorfinnell commented 5 years ago

Oops, no idea how that happened

samueleaton commented 5 years ago

@taylorfinnell Can we get a release out for this? :)

taylorfinnell commented 5 years ago

Done!