Changeset

525:a9cd75cc9563

mod_xml_status: small cleanup.
author Marco Cirillo <maranda@lightwitch.org>
date Fri, 06 Jan 2012 23:43:52 +0000
parents 524:ff3ea8735d61
children 526:0529658efd1e
files mod_xml_status/mod_xml_status.lua
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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