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

[bugfix beta] Treat status code 0 as an abort #4567

Merged
merged 3 commits into from
Oct 4, 2016
Merged

[bugfix beta] Treat status code 0 as an abort #4567

merged 3 commits into from
Oct 4, 2016

Conversation

bryanhickerson
Copy link
Contributor

This PR resolves issue #4561. An abort by a user's browser has textStatus === error, which results in a confusing Ember Data Payload error. This PR checks for status code 0, and returns an AbortError if that is the case.

@fivetanley
Copy link
Member

@bryanhickerson this looks great to me!

Can you run:

git commit --amend -m '[bugfix beta] Treat status code 0 as an abort' and re-push, so we can pull it in for the next release?

@bryanhickerson bryanhickerson changed the title Treat status code 0 as an abort [bugfix beta] Treat status code 0 as an abort Oct 3, 2016
@bryanhickerson
Copy link
Contributor Author

Done. Thanks for the quick response!

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