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

Closed
knu opened this issue Feb 28, 2019 · 1 comment
Closed

purge_cache is broken #10

knu opened this issue Feb 28, 2019 · 1 comment

Comments

@knu
Copy link

@knu 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 }

@thde
Copy link
Contributor

@thde thde commented Apr 4, 2019

Fixed by #12

@thde thde closed this Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants