Software /
code /
prosody
Changeset
1633:7812459eeed7
mod_bosh: Fix error reply for host-unknown errors
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 05 Aug 2009 03:08:21 +0100 |
parents | 1632:4a70cbb0fad7 |
children | 1634:46120978150c 1635:33d087466767 |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Wed Aug 05 03:07:45 2009 +0100 +++ b/plugins/mod_bosh.lua Wed Aug 05 03:08:21 2009 +0100 @@ -136,8 +136,8 @@ if not hosts[attr.to] then -- Unknown host log("debug", "BOSH client tried to connect to unknown host: %s", tostring(attr.to)); - session_close_reply.attr.condition = "host-unknown"; - request:send{ headers = default_headers, body = tostring(session_close_reply) }; + session_close_reply.body.attr.condition = "host-unknown"; + request:send(session_close_reply); request.notopen = nil return; end