mod_xml_status: small cleanup.
authorMarco Cirillo <maranda@lightwitch.org>
Fri, 06 Jan 2012 23:43:52 +0000
changeset 525 a9cd75cc9563
parent 524 ff3ea8735d61
child 526 0529658efd1e
mod_xml_status: small cleanup.
mod_xml_status/mod_xml_status.lua
--- a/mod_xml_status/mod_xml_status.lua	Fri Jan 06 23:15:51 2012 +0000
+++ b/mod_xml_status/mod_xml_status.lua	Fri Jan 06 23:43:52 2012 +0000
@@ -101,10 +101,7 @@
         return response
 end
 
-local function request(method, body, request)
-	if not prosody.stanza_counter then
-		local err500 = r_err:format("500", "Internal server error")
-		return response(500, err500) end
+local function request(method, body, request)	
 	if method == "GET" then
 		return response(200, forge_response())
 	else