aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-05-24 18:37:07 +0100
committerMatthew Wild <mwild1@gmail.com>2013-05-24 18:37:07 +0100
commitaa2c7c578a713f6a6de80508badb2b832b968108 (patch)
treef765047a88334ecdfbc220c2d7fc9a907a89b6cd
parent8c7ccc03685804776dfc90cba17ec3d766479740 (diff)
downloadprosody-aa2c7c578a713f6a6de80508badb2b832b968108.tar.gz
prosody-aa2c7c578a713f6a6de80508badb2b832b968108.zip
mod_bosh: Some very minor whitespace/layout fixes
-rw-r--r--plugins/mod_bosh.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 19f191c8..bd39daa5 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -1,7 +1,7 @@
-- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
---
+--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
@@ -218,7 +218,7 @@ local function bosh_close_stream(session, reason)
held_request.headers = default_headers;
held_request:send(response_body);
end
- sessions[session.sid] = nil;
+ sessions[session.sid] = nil;
inactive_sessions[session] = nil;
sm_destroy_session(session);
end
@@ -291,7 +291,8 @@ function stream_callbacks.streamopened(context, attr)
body_attr.hold = tostring(session.bosh_hold);
body_attr.authid = sid;
body_attr.secure = "true";
- body_attr.ver = '1.6'; from = session.host;
+ body_attr.ver = '1.6';
+ body_attr.from = session.host;
body_attr["xmlns:xmpp"] = "urn:xmpp:xbosh";
body_attr["xmpp:version"] = "1.0";
end