aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-12-30 13:42:53 +0100
committerBadlop <badlop@process-one.net>2010-12-30 13:42:53 +0100
commita2e1d2030a17f6407057a0cd7ef28cab444fc0b3 (patch)
tree053f2dddcd20a3b7be9cfbd444e68c424bd4378d /src
parentChange c2s state before offline messages resending (diff)
Keep the order of stanzas when BOSH sends several (EJAB-1374)
Diffstat (limited to 'src')
-rw-r--r--src/web/ejabberd_http_bind.erl2
1 files changed, 1 insertions, 1 deletions
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)