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

feat(api): adds check for http status 304 #311

Merged
merged 2 commits into from Jul 22, 2021
Merged

feat(api): adds check for http status 304 #311

merged 2 commits into from Jul 22, 2021

Conversation

cmcnicholas
Copy link
Contributor

fixes #310

the HTTP status code 304 should be considered successful as it implies the content hasn't changed since last load.

this change adds the check on status codes expanding on the default of >= 200 || < 300

http status code should be considered successful
@bahmutov
Copy link
Owner

Looks good, but can you add a test server and verify this works? Look at other server tests for an example

@cmcnicholas
Copy link
Contributor Author

@bahmutov test added and ran locally, passing, hope that helps.

@bahmutov
Copy link
Owner

Nice job @cmcnicholas if the tests pass will merge and it should release it. Really appreciate adding this feature.

@bahmutov bahmutov merged commit c0adf51 into bahmutov:master Jul 22, 2021
@github-actions
Copy link

🎉 This PR is included in version 1.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

HTTP Status Code 304 Should Be Considered Successful
2 participants