Skip to content

Commit

Permalink
Fix Dialyzer inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mremond committed Mar 30, 2016
1 parent 8090576 commit 3c480a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions include/ejabberd_http.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -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()},
Expand Down
1 change: 1 addition & 0 deletions src/ejabberd_http.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c480a5

Please sign in to comment.