Changeset

532:967ba17b1d2a

mod_xml_status: stick to one code "punctuation" style.
author Marco Cirillo <maranda@lightwitch.org>
date Sat, 07 Jan 2012 18:14:14 +0000
parents 531:2b71ba2739e0
children 533:47b9053dba38
files mod_xml_status/mod_xml_status.lua
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mod_xml_status/mod_xml_status.lua	Sat Jan 07 18:12:38 2012 +0000
+++ b/mod_xml_status/mod_xml_status.lua	Sat Jan 07 18:14:14 2012 +0000
@@ -91,12 +91,9 @@
 -- http handlers
 
 local function response(code, r, h)
-	local response = {
-		status = code;
-		body = r;
-		}
+	local response = { status = code, body = r }
 	
-        if h then response.headers = h; end
+        if h then response.headers = h end
         return response
 end
 
@@ -116,7 +113,7 @@
 end
 
 if prosody.start_time then
-        setup();
+        setup()
 else
-        module:hook("server-started", setup);
+        module:hook("server-started", setup)
 end