25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

Keep the order of stanzas when BOSH sends several (EJAB-1374)

This commit is contained in:
Badlop 2010-12-30 13:42:53 +01:00
parent 20c4919eda
commit ea84f802e5

View File

@ -1142,7 +1142,7 @@ send_outpacket(#http_bind{pid = FsmRef}, OutPacket) ->
end, OutPacket), end, OutPacket),
case AllElements of case AllElements of
true -> true ->
TypedEls = lists:foldr(fun({xmlstreamelement, El}, Acc) -> TypedEls = lists:foldl(fun({xmlstreamelement, El}, Acc) ->
Acc ++ Acc ++
[exmpp_xml:document_to_list( [exmpp_xml:document_to_list(
check_default_xmlns(El) check_default_xmlns(El)