Skip to content

Commit 77385b1

Browse files
committed
JSON decode the response before re-encoding it.
1 parent 005f5c7 commit 77385b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Kobas/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ protected function call($http_method, $route, array $params = array(), array $he
181181
$this->request->close();
182182

183183
if ($last_response >= 400) {
184-
throw new HttpException($last_response, json_encode($result, true));
184+
throw new HttpException($last_response, json_encode(json_decode($result, true), true));
185185
}
186186

187187
return json_decode($result, true);

0 commit comments

Comments
 (0)