Replace the native call jsx with rabbit_json

This commit is contained in:
Gabriele Santomaggio 2017-01-26 15:10:41 +01:00
parent 60be1da071
commit a5b1c8ffcb
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ http_get_no_map(Config, Path) ->
{ok, {{_HTTP, CodeAct, _}, _Headers, ResBody}} = {ok, {{_HTTP, CodeAct, _}, _Headers, ResBody}} =
req(Config, get, Path, [auth_header("guest", "guest")]), req(Config, get, Path, [auth_header("guest", "guest")]),
assert_code(?OK, CodeAct, "GET", Path, ResBody), assert_code(?OK, CodeAct, "GET", Path, ResBody),
cleanup(jsx:decode(list_to_binary(ResBody))). cleanup(rabbit_json:decode(list_to_binary(ResBody))).
http_put(Config, Path, List, CodeExp) -> http_put(Config, Path, List, CodeExp) ->
http_put_raw(Config, Path, format_for_upload(List), CodeExp). http_put_raw(Config, Path, format_for_upload(List), CodeExp).