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 #100 bug when response is a string #101

Merged
merged 1 commit into from
Apr 29, 2015

Conversation

gregory
Copy link
Contributor

@gregory gregory commented Apr 28, 2015

screenshot 2015-04-28 16 00 02

Fix: We should rescue the JSON parsing

cc @mattolson @pedelman

@gregory
Copy link
Contributor Author

gregory commented Apr 28, 2015

will add couple more things hold on before merging.

@gregory gregory force-pushed the fix_issue_100 branch 2 times, most recently from 23e693b to b6cae10 Compare April 28, 2015 23:34
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 99.9% when pulling b6cae10 on gregory:fix_issue_100 into 8e61935 on bigcommerce:master.

error_hash = env.body.empty? ? {} : JSON.parse(env.body, symbolize_names: true)
response_headers = {}
unless env.body.empty?
begin
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mean to say response_headers = begin... ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes :)

We should rescue the JSON parsing

fix rubocop
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 100.0% when pulling 5ef9721 on gregory:fix_issue_100 into 8e61935 on bigcommerce:master.

@mattolson
Copy link
Contributor

👍

mattolson added a commit that referenced this pull request Apr 29, 2015
fix #100 bug when response is a string
@mattolson mattolson merged commit 9e61c3c into bigcommerce:master Apr 29, 2015
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.

3 participants