summaryrefslogtreecommitdiff
path: root/src/ejabberd_http.erl
diff options
context:
space:
mode:
authorMickael Remond <mremond@process-one.net>2016-03-30 16:47:40 +0200
committerMickael Remond <mremond@process-one.net>2016-03-30 16:47:40 +0200
commit3c480a5b0b186c5f3173c5b2c3f84ea8c19a7918 (patch)
treeb613a3ff25ac1268dcee0d71e9be4a46342e62cd /src/ejabberd_http.erl
parentBetter error report when command is not exposed through API (diff)
Fix Dialyzer inconsistency
Diffstat (limited to 'src/ejabberd_http.erl')
-rw-r--r--src/ejabberd_http.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ejabberd_http.erl b/src/ejabberd_http.erl
index d8d1ddd4..6b53f46c 100644
--- a/src/ejabberd_http.erl
+++ b/src/ejabberd_http.erl
@@ -753,6 +753,7 @@ code_to_phrase(503) -> <<"Service Unavailable">>;
code_to_phrase(504) -> <<"Gateway Timeout">>;
code_to_phrase(505) -> <<"HTTP Version Not Supported">>.
+-spec parse_auth(binary()) -> {binary(), binary()} | {oauth, binary(), []} | undefined.
parse_auth(<<"Basic ", Auth64/binary>>) ->
Auth = jlib:decode_base64(Auth64),
%% Auth should be a string with the format: user@server:password