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 HTTParty::Response#success? #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

capripot
Copy link

@capripot capripot commented Feb 9, 2021

Use HTTParty::Response#success? instead of checking for 200 since 201 is also a valid code returned by Greenhouse API.

It has been suggested by multiple contributors (e.g.: fddd6a3) and it's done in multiple forks (e.g.: 377e8ff, 3b094b4, 2718e36).

I think we can safely merge this.

@capripot capripot changed the title Use response success Use HTTParty::Response#success? Feb 9, 2021
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.

1 participant