Software /
code /
prosody
Diff
net/xmppserver_listener.lua @ 3634:0d6b57edb7bd
net.xmpp{client,server,component}_listener: s/xml-not-well-formed/not-well-formed/ as per latest bis drafts.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 20 Nov 2010 02:33:36 +0500 |
parent | 3345:8520cd88b84c |
child | 3753:f66206484528 |
line wrap: on
line diff
--- a/net/xmppserver_listener.lua Sat Nov 20 02:28:40 2010 +0500 +++ b/net/xmppserver_listener.lua Sat Nov 20 02:33:36 2010 +0500 @@ -27,7 +27,7 @@ session:close("invalid-namespace"); elseif error == "parse-error" then session.log("debug", "Server-to-server XML parse error: %s", tostring(error)); - session:close("xml-not-well-formed"); + session:close("not-well-formed"); elseif error == "stream-error" then local condition, text = "undefined-condition"; for child in data:children() do @@ -136,7 +136,7 @@ if ok then return; end (session.log or log)("warn", "Received invalid XML: %s", data); (session.log or log)("warn", "Problem was: %s", err); - session:close("xml-not-well-formed"); + session:close("not-well-formed"); end end