Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

purge_cache is broken #10

Open
knu opened this Issue Feb 28, 2019 · 0 comments

Comments

1 participant
@knu
Copy link

knu commented Feb 28, 2019

The endpoint /zones/:zone_id/purge_cache only accepts POST:
https://api.cloudflare.com/#zone-purge-all-files

But this library tries to request using the DELETE method:

resp = connection.delete(path) { |req| req.body = { purge_everything: purge_everything } }

resp = connection.delete(path) { |req| req.body = cache_identifier }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.