aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-09-07 19:33:14 +0100
committerMatthew Wild <mwild1@gmail.com>2016-09-07 19:33:14 +0100
commit9bc81d00a58bae2778f9b60b4ecb6cb484fe68b8 (patch)
tree1857990266cbbb0ea2050db25290aeaee0419b54 /plugins
parentaaefe2e6ed4c9d2cf217a3b6f627e75be3b3f446 (diff)
parent582a2180f2ebd07d084d85ffd3e7641565be6d2f (diff)
downloadprosody-9bc81d00a58bae2778f9b60b4ecb6cb484fe68b8.tar.gz
prosody-9bc81d00a58bae2778f9b60b4ecb6cb484fe68b8.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 1a5d3904..8d83ecd6 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -366,7 +366,8 @@ function stream_callbacks.streamopened(context, attr)
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;