Changeset

7660:d2825ddaac19

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 07 Sep 2016 19:33:14 +0100
parents 7658:e14a124c4d73 (current diff) 7659:449de852cf38 (diff)
children 7661:37ab6c6326fe
files plugins/mod_bosh.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Sun Sep 04 17:17:22 2016 +0200
+++ b/plugins/mod_bosh.lua	Wed Sep 07 19:33:14 2016 +0100
@@ -366,7 +366,8 @@
 					body_attr["xmlns:xmpp"] = "urn:xmpp:xbosh";
 					body_attr["xmpp:version"] = "1.0";
 				end
-				oldest_request:send(st.stanza("body", body_attr):top_tag()..t_concat(session.send_buffer).."</body>");
+				session.bosh_last_response = st.stanza("body", body_attr):top_tag()..t_concat(session.send_buffer).."</body>";
+				oldest_request:send(session.bosh_last_response);
 				session.send_buffer = {};
 			end
 			return true;