Replace the native call jsx with rabbit_json
This commit is contained in:
parent
60be1da071
commit
a5b1c8ffcb
|
@ -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).
|
||||||
|
|
Loading…
Reference in New Issue