Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMickael Remond <mremond@process-one.net>2016-04-01 12:13:48 +0300
committerMickael Remond <mremond@process-one.net>2016-04-01 12:13:48 +0300
commitb5f1479763c5df2bd327dbc9e349b0c2637df9cc (patch)
treefdeaf1080c03a194c0c7b668f64a52272f4efe57 /src/mod_http_api.erl
parenta8f92ae767eee39100bec38ff32fe39d017dabcb (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 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} ->