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

Handling empty responses in the json parser #2

Merged
merged 4 commits into from Jan 14, 2014
Merged

Conversation

gergelyke
Copy link
Contributor

see issue #1

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling f99ae60 on gergelyke:master into 8d60c95 on vesln:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling f99ae60 on gergelyke:master into 8d60c95 on vesln:master.

res = JSON.parse(data);
} catch (e) {
err = e;
// we have an empty response (eg: HTTP 204, HTTP 304), not parsing it
Copy link
Owner

Choose a reason for hiding this comment

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

Could you please move this comment into the jsdoc above

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 8b43e34 on gergelyke:master into 8d60c95 on vesln:master.

@gergelyke
Copy link
Contributor Author

Fixed!

vesln added a commit that referenced this pull request Jan 14, 2014
Handling empty responses in the json parser
@vesln vesln merged commit 4b4e36e into vesln:master Jan 14, 2014
@vesln
Copy link
Owner

vesln commented Jan 14, 2014

Thanks, great work!

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

3 participants