Need use json parse the data, before return the response.
Signed-off-by: Cao Xueliang caoxl78320@163.com --- lib/assist_result_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/assist_result_client.rb b/lib/assist_result_client.rb index 592c841..2d2e60d 100644 --- a/lib/assist_result_client.rb +++ b/lib/assist_result_client.rb @@ -60,6 +60,6 @@ class AssistResult response = resource.post(Base64.encode64(data.to_json)) return nil unless response.code == 200
- return response.body + return JSON.parse(response.body) end end