socketry / cloudflare

An asynchronous Ruby wrapper for the CloudFlare V4 API.
138 stars 86 forks source link

Endless loop if a `find_by_*` request yields 0 results #26

Closed lwille closed 6 years ago

lwille commented 6 years ago

Offending code: https://github.com/ioquatix/cloudflare/blob/8cbabe983366aa84bf05b4c142ce5f880ddc30a2/lib/cloudflare/connection.rb#L63

A check for zero-length response is missing.