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

Json response ' ' (empty string with space) produces a parseJson error. #207

Open
prusik opened this issue Apr 14, 2015 · 2 comments
Open

Comments

@prusik
Copy link

prusik commented Apr 14, 2015

When I call a 3rd party application using their library that depends on restler, if their response is 'empty', there is a parse error produced in restler. Unfortunately, their representation of an empty string has a space, therefore restler tries to parse the string, which results in invalid json and thus produces the error. My proposal is to trim the response before testing whether it is empty. I have created a pull request and will mention this issue in the request.

@ryedog
Copy link

ryedog commented Jul 9, 2015

👍 any word on merging this PR?

@easternbloc
Copy link
Collaborator

I've added a comment on the PR

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

No branches or pull requests

3 participants