25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00
SVN Revision: 2530
This commit is contained in:
Christophe Romain 2009-08-25 15:09:12 +00:00
parent 3909f95ac1
commit f303a40973
3 changed files with 7 additions and 4 deletions

View File

@ -82,6 +82,7 @@
-define(NS_COMPRESS, "http://jabber.org/protocol/compress").
-define(NS_CAPS, "http://jabber.org/protocol/caps").
-define(NS_SHIM, "http://jabber.org/protocol/shim").
%% CAPTCHA related NSes.
-define(NS_OOB, "jabber:x:oob").

View File

@ -3632,8 +3632,9 @@ itemsEls(Items) ->
{xmlelement, "item", itemAttr(ItemId), Payload}
end, Items).
add_headers({xmlelement, Name, Attrs, Els}, Headers) ->
{xmlelement, Name, Attrs, Els ++ Headers}.
add_headers({xmlelement, Name, Attrs, Els}, HeaderEls) ->
HeaderEl = {xmlelement, "headers", [{"xmlns", ?NS_SHIM}], HeaderEls},
{xmlelement, Name, Attrs, [HeaderEl | Els]}.
collection_shim(Node, Nodes) ->
[{xmlelement, "header", [{"name", "Collection"}],

View File

@ -3689,8 +3689,9 @@ itemsEls(Items) ->
{xmlelement, "item", itemAttr(ItemId), Payload}
end, Items).
add_headers({xmlelement, Name, Attrs, Els}, Headers) ->
{xmlelement, Name, Attrs, Els ++ Headers}.
add_headers({xmlelement, Name, Attrs, Els}, HeaderEls) ->
HeaderEl = {xmlelement, "headers", [{"xmlns", ?NS_SHIM}], HeaderEls},
{xmlelement, Name, Attrs, [HeaderEl | Els]}.
collection_shim(Node, Nodes) ->
[{xmlelement, "header", [{"name", "Collection"}],