aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/stanza_router.lua6
-rw-r--r--net/httpserver.lua2
2 files changed, 2 insertions, 6 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 6dc4274b..dac098bb 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -150,11 +150,7 @@ function core_post_stanza(origin, stanza)
component_handle_stanza(origin, stanza);
return;
end
- if not modules_handle_stanza(h.host, origin, stanza) then
- if stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then
- origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
- end
- end
+ modules_handle_stanza(h.host, origin, stanza);
else
core_route_stanza(origin, stanza);
end
diff --git a/net/httpserver.lua b/net/httpserver.lua
index fefd289b..699e0324 100644
--- a/net/httpserver.lua
+++ b/net/httpserver.lua
@@ -105,7 +105,7 @@ local function call_callback(request, err)
if response then
if response == true and not request.destroyed then
-- Keep connection open, we will reply later
- log("warn", "Request %s left open, on_destroy is %s", request.id, tostring(request.on_destroy));
+ log("debug", "Request %s left open, on_destroy is %s", request.id, tostring(request.on_destroy));
elseif response ~= true then
-- Assume response
send_response(request, response);