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.
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.