aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-08-05 03:08:21 +0100
committerMatthew Wild <mwild1@gmail.com>2009-08-05 03:08:21 +0100
commitfef360b4dd88c409b5cacbed161bdd6cfd043396 (patch)
tree898492088766ad3992da2618904eb3b7173f2751
parentnet.httpserver: Allow response.body to be a non-string (diff)
downloadprosody-fef360b4dd88c409b5cacbed161bdd6cfd043396.tar.xz
prosody-fef360b4dd88c409b5cacbed161bdd6cfd043396.zip
mod_bosh: Fix error reply for host-unknown errors
-rw-r--r--plugins/mod_bosh.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 744893c44..743ebdef4 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -136,8 +136,8 @@ function stream_callbacks.streamopened(request, attr)
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