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

Use method to check idempotence in Net::HTTP::Persistent#idempotent? #83

Merged
merged 1 commit into from
Jul 25, 2019

Conversation

fotos
Copy link
Contributor

@fotos fotos commented Dec 26, 2016

Right now faraday is passing in an instance of Net::HTTPGenericRequest and the idempotent? check fails, even though some requests are idempotent based on the actual method.

I believe it's better to check the actual method instead of the class hierarchy.

For a more thorough description of the problem have a look at lostisland/faraday#647.

@drbrain drbrain merged commit a904297 into drbrain:master Jul 25, 2019
@fotos fotos deleted the fix-idempotance-check branch July 30, 2019 19:46
@fotos
Copy link
Contributor Author

fotos commented Jul 30, 2019

@drbrain thanks for merging and releasing a new version! 🙌🚀😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants