From b5f1479763c5df2bd327dbc9e349b0c2637df9cc Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Fri, 1 Apr 2016 11:13:48 +0200 Subject: Fix tests, they are now running fine locally --- src/mod_http_api.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mod_http_api.erl') diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl index 60196f650..73a072059 100644 --- a/src/mod_http_api.erl +++ b/src/mod_http_api.erl @@ -230,16 +230,16 @@ process([Call], #request{method = 'POST', data = Data, ip = IP} = Req) -> ?DEBUG("Bad Request: ~p", [_Err]), badrequest_response(<<"Invalid JSON input">>); _:_Error -> - ?DEBUG("Bad Request: ~p ~p", [_Error, erlang:get_stacktrace()]), - badrequest_response() + ?DEBUG("Bad Request: ~p ~p", [_Error, erlang:get_stacktrace()]), + badrequest_response() end; process([Call], #request{method = 'GET', q = Data, ip = IP} = Req) -> Version = get_api_version(Req), try Args = case Data of - [{nokey, <<>>}] -> []; - _ -> Data - end, + [{nokey, <<>>}] -> []; + _ -> Data + end, log(Call, Args, IP), case check_permissions(Req, Call) of {allowed, Cmd, Auth} -> -- cgit v1.2.3