summaryrefslogtreecommitdiff
path: root/src/mod_http_api.erl
diff options
context:
space:
mode:
authorMickael Remond <mremond@process-one.net>2016-04-01 11:13:48 +0200
committerMickael Remond <mremond@process-one.net>2016-04-01 11:13:48 +0200
commitb5f1479763c5df2bd327dbc9e349b0c2637df9cc (patch)
treefdeaf1080c03a194c0c7b668f64a52272f4efe57 /src/mod_http_api.erl
parentAdd logger macro to help troubleshooting Elixir tests (diff)
Fix tests, they are now running fine locally
Diffstat (limited to 'src/mod_http_api.erl')
-rw-r--r--src/mod_http_api.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl
index 60196f65..73a07205 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} ->