mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Fix Dialyzer inconsistency
This commit is contained in:
parent
809057678b
commit
3c480a5b0b
@ -23,8 +23,7 @@
|
|||||||
path = [] :: [binary()],
|
path = [] :: [binary()],
|
||||||
q = [] :: [{binary() | nokey, binary()}],
|
q = [] :: [{binary() | nokey, binary()}],
|
||||||
us = {<<>>, <<>>} :: {binary(), binary()},
|
us = {<<>>, <<>>} :: {binary(), binary()},
|
||||||
auth :: {binary(), binary()} |
|
auth :: {binary(), binary()} | {oauth, binary(), []} | undefined,
|
||||||
{auth_jid, {binary(), binary()}, jlib:jid()},
|
|
||||||
lang = <<"">> :: binary(),
|
lang = <<"">> :: binary(),
|
||||||
data = <<"">> :: binary(),
|
data = <<"">> :: binary(),
|
||||||
ip :: {inet:ip_address(), inet:port_number()},
|
ip :: {inet:ip_address(), inet:port_number()},
|
||||||
|
@ -753,6 +753,7 @@ code_to_phrase(503) -> <<"Service Unavailable">>;
|
|||||||
code_to_phrase(504) -> <<"Gateway Timeout">>;
|
code_to_phrase(504) -> <<"Gateway Timeout">>;
|
||||||
code_to_phrase(505) -> <<"HTTP Version Not Supported">>.
|
code_to_phrase(505) -> <<"HTTP Version Not Supported">>.
|
||||||
|
|
||||||
|
-spec parse_auth(binary()) -> {binary(), binary()} | {oauth, binary(), []} | undefined.
|
||||||
parse_auth(<<"Basic ", Auth64/binary>>) ->
|
parse_auth(<<"Basic ", Auth64/binary>>) ->
|
||||||
Auth = jlib:decode_base64(Auth64),
|
Auth = jlib:decode_base64(Auth64),
|
||||||
%% Auth should be a string with the format: user@server:password
|
%% Auth should be a string with the format: user@server:password
|
||||||
|
Loading…
Reference in New Issue
Block a user