mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Code clean-up (EJAB-936)(thanks to Michael Remond)
SVN Revision: 2319
This commit is contained in:
parent
b74cb8828b
commit
35c6ea68cc
@ -4,7 +4,7 @@
|
|||||||
%%% Purpose : Implements XMPP over BOSH (XEP-0205) (formerly known as
|
%%% Purpose : Implements XMPP over BOSH (XEP-0205) (formerly known as
|
||||||
%%% HTTP Binding)
|
%%% HTTP Binding)
|
||||||
%%% Created : 21 Sep 2005 by Stefan Strigler <steve@zeank.in-berlin.de>
|
%%% Created : 21 Sep 2005 by Stefan Strigler <steve@zeank.in-berlin.de>
|
||||||
%%% Id : $Id: ejabberd_http_bind.erl 958 2009-05-12 14:43:41Z mremond $
|
%%% Id : $Id: ejabberd_http_bind.erl 959 2009-05-12 14:45:27Z mremond $
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
|
|
||||||
-module(ejabberd_http_bind).
|
-module(ejabberd_http_bind).
|
||||||
@ -1056,11 +1056,11 @@ get_max_inactivity({Host, _}, Default) ->
|
|||||||
get_max_inactivity(_, Default) ->
|
get_max_inactivity(_, Default) ->
|
||||||
Default.
|
Default.
|
||||||
|
|
||||||
remove_tag_attr(Attr, {xmlelement, Name, Attrs, Els}) ->
|
%% remove_tag_attr(Attr, {xmlelement, Name, Attrs, Els}) ->
|
||||||
Attrs1 = lists:keydelete(Attr, 1, Attrs),
|
%% Attrs1 = lists:keydelete(Attr, 1, Attrs),
|
||||||
{xmlelement, Name, Attrs1, Els};
|
%% {xmlelement, Name, Attrs1, Els};
|
||||||
remove_tag_attr(Attr, El) ->
|
%% remove_tag_attr(Attr, El) ->
|
||||||
El.
|
%% El.
|
||||||
|
|
||||||
check_default_xmlns({xmlelement, Name, Attrs, Els} = El) ->
|
check_default_xmlns({xmlelement, Name, Attrs, Els} = El) ->
|
||||||
case xml:get_tag_attr_s("xmlns", El) of
|
case xml:get_tag_attr_s("xmlns", El) of
|
||||||
|
Loading…
Reference in New Issue
Block a user