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

Fix | Allow Return False In hasRequestFailed #371

Merged
merged 2 commits into from
Feb 14, 2024
Merged

Conversation

Sammyjo20
Copy link
Collaborator

Closes #314

This PR inherits a lot of the changes that @gdebrauwer originally proposed, so thank you very much for figuring out that issue!

This PR changes the way the hasRequestFailed method works. Previously it would only work if you returned true, useful for APIs that have an invalid HTTP status code. However, @gdebrauwer discovered that if you wanted to tell Saloon that a request has not failed even if it has a valid HTTP status, this did not work.

@Sammyjo20 Sammyjo20 marked this pull request as ready for review February 12, 2024 12:57
Copy link
Collaborator Author

@Sammyjo20 Sammyjo20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self review

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.

None yet

1 participant