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
commitbe23c86153168e94b567f6d6a5da9bf282f7b9b7 (patch)
tree1857990266cbbb0ea2050db25290aeaee0419b54 /plugins
parentdd19060f7b29e86a934540259f1387655e910fdb (diff)
parent8460485ee0ab18d480d45d427445e2862c21c3d6 (diff)
downloadprosody-be23c86153168e94b567f6d6a5da9bf282f7b9b7.tar.gz
prosody-be23c86153168e94b567f6d6a5da9bf282f7b9b7.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;