|
@@ -83,7 +83,7 @@ api_call(Name, Props) ->
|
|
|
Req = {?API_URI ++ Name, Authorization},
|
|
|
|
|
|
case httpc:request(get, Req, ?HTTP_OPTS, []) of
|
|
|
- {ok, {{"HTTP/1.1",200,"OK"},Hh,Bh}} ->
|
|
|
+ {ok, {{"HTTP/1.1",200,"OK"},_Hh,Bh}} ->
|
|
|
{Usr} = ?AVZ_JSON:decode(list_to_binary(Bh)), Usr;
|
|
|
{ok, {{"HTTP/1.1",_,_},_,B}} ->
|
|
|
{Err} = ?AVZ_JSON:decode(list_to_binary(B)), avz:event({error, wf:jse(Err)}), api_error;
|