]> granicus.if.org Git - ejabberd/commitdiff
Fix Dialyzer inconsistency
authorMickael Remond <mremond@process-one.net>
Wed, 30 Mar 2016 14:47:40 +0000 (16:47 +0200)
committerMickael Remond <mremond@process-one.net>
Wed, 30 Mar 2016 14:47:40 +0000 (16:47 +0200)
include/ejabberd_http.hrl
src/ejabberd_http.erl

index b8cbe37087b6af33bc40229fc32f77eba75049d0..25209f76c923cd0992113e06da4909e9a5a74780 100644 (file)
@@ -23,8 +23,7 @@
         path = []         :: [binary()],
         q = []            :: [{binary() | nokey, binary()}],
         us = {<<>>, <<>>} :: {binary(), binary()},
-        auth              :: {binary(), binary()} |
-        {auth_jid, {binary(), binary()}, jlib:jid()},
+        auth              :: {binary(), binary()} | {oauth, binary(), []} | undefined,
         lang = <<"">>     :: binary(),
         data = <<"">>     :: binary(),
         ip                :: {inet:ip_address(), inet:port_number()},
index d8d1ddd44d75e5e8ffd076e2de23f0ba033ee16c..6b53f46c6a27be1183c41bdc35a585e8bc71327e 100644 (file)
@@ -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