lib/cloudflare/zone.rb in cloudflare-3.2.0 vs lib/cloudflare/zone.rb in cloudflare-3.2.1

- old
+ new

@@ -169,10 +169,10 @@ def firewall_rules @firewall_rules ||= FirewallRules.new(concat_urls(url, 'firewall/access_rules/rules'), self, **options) end def purge_cache(params = DEFAULT_PURGE_CACHE_PARAMS) - response = self['purge_cache'].post(params&.to_json || {}) + response = self['purge_cache'].post(params.to_json) response.successful? end def to_s @record[:name]