| commit | ee675fd0ce8c40a1077813b0d1f0df0bd92b6e03 | [log] [tgz] |
|---|---|---|
| author | Pratik Mallya <pratik.mallya@gmail.com> | Mon Sep 14 14:07:30 2015 -0500 |
| committer | Pratik Mallya <pratik.mallya@gmail.com> | Mon Sep 14 14:07:30 2015 -0500 |
| tree | a66f8e3ff9728b6fd1e9169e90cc1f93f1733525 | |
| parent | 53c3b4c4b319cbc849532332de566e401597a753 [diff] |
Make client return error on JSON decoding error If the response is not valid JSON, the request simply returns an empty body. If the user is expecting the result to be JSON and its not, we should signal that an error has occured. This patch also includes fixes to tests that fail due to the error that bubbles up.