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

Handle image loading failure (empty body or statusCode other than 200) #7

Merged
merged 2 commits into from
Feb 4, 2016

Conversation

paula-stacho
Copy link

In cases when the image could not be loaded and (body && res.statusCode === 200) was not true, no error was thrown and callback was never called.

@riyadhalnur
Copy link
Owner

Please add a test case that tests the problem this PR is fixing.

@riyadhalnur riyadhalnur self-assigned this Feb 1, 2016
@paula-stacho
Copy link
Author

test case with an URL leading to 404 added

@riyadhalnur
Copy link
Owner

Thanks for your contribution! We'll triage and take a look at it as soon as possible!

riyadhalnur added a commit that referenced this pull request Feb 4, 2016
Handle image loading failure (empty body or statusCode other than 200)
@riyadhalnur riyadhalnur merged commit f9287c9 into riyadhalnur:master Feb 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants