From a2e1d2030a17f6407057a0cd7ef28cab444fc0b3 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 30 Dec 2010 13:42:53 +0100 Subject: [PATCH] Keep the order of stanzas when BOSH sends several (EJAB-1374) --- src/web/ejabberd_http_bind.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl index bc1d1d71d..bcc3be054 100644 --- a/src/web/ejabberd_http_bind.erl +++ b/src/web/ejabberd_http_bind.erl @@ -1040,7 +1040,7 @@ send_outpacket(#http_bind{pid = FsmRef}, OutPacket) -> end, OutPacket), case AllElements of true -> - TypedEls = lists:foldr(fun({xmlstreamelement, El}, Acc) -> + TypedEls = lists:foldl(fun({xmlstreamelement, El}, Acc) -> Acc ++ [xml:element_to_string( check_default_xmlns(El)