ejabberd - Comments for "Pubsub : missing &amp;quot;headers&amp;quot; wrapper in SHIM headers" https://www.ejabberd.im/node/3629 en Ok, patch applied to SVN. https://www.ejabberd.im/node/3629#comment-54582 <p>Ok, patch applied to SVN.</p> Tue, 25 Aug 2009 15:23:40 +0000 mfoss comment 54582 at https://www.ejabberd.im it works https://www.ejabberd.im/node/3629#comment-54581 <p>Thank you, it works just fine for me, I think you can submit the patch.</p> Tue, 25 Aug 2009 14:33:41 +0000 clochix comment 54581 at https://www.ejabberd.im Try this small patch https://www.ejabberd.im/node/3629#comment-54574 <p>I wrote this small patch. If you confirm it works correctly, I'll report it to the PubSub experts for inclusion in SVN.</p> <pre> --- a/src/jlib.hrl +++ b/src/jlib.hrl @@ -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"). diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index 7135bdb..049771e 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -3621,8 +3621,9 @@ itemsEls(Items) -&gt; {xmlelement, "item", itemAttr(ItemId), Payload} end, Items). -add_headers({xmlelement, Name, Attrs, Els}, Headers) -&gt; - {xmlelement, Name, Attrs, Els ++ Headers}. +add_headers({xmlelement, Name, Attrs, Els}, HeaderEls) -&gt; + HeaderEl = {xmlelement, "headers", [{"xmlns", ?NS_SHIM}], HeaderEls}, + {xmlelement, Name, Attrs, [HeaderEl | Els]}. collection_shim(Node, Nodes) -&gt; [{xmlelement, "header", [{"name", "Collection"}], </pre> Mon, 24 Aug 2009 14:20:27 +0000 mfoss comment 54574 at https://www.ejabberd.im