# HG changeset patch # User Matthew Wild # Date 1369417027 -3600 # Node ID 7298c9bbb30f608a01200df90380a61c67375764 # Parent d999027577edd58675102a35f5213141117c5acf mod_bosh: Some very minor whitespace/layout fixes diff -r d999027577ed -r 7298c9bbb30f plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Fri May 24 18:33:16 2013 +0100 +++ b/plugins/mod_bosh.lua Fri May 24 18:37:07 2013 +0100 @@ -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 @@ 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 @@ 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