diff mod_register_json/mod_register_json.lua @ 710:b0c0acccd7c4

mod_register_json: corrected trace.
author Marco Cirillo <maranda@lightwitch.org>
date Mon, 11 Jun 2012 00:35:26 +0000
parents aa3fbb33700d
children 9080b0898b6f
line wrap: on
line diff
--- a/mod_register_json/mod_register_json.lua	Sat Jun 09 23:15:44 2012 +0200
+++ b/mod_register_json/mod_register_json.lua	Mon Jun 11 00:35:26 2012 +0000
@@ -87,7 +87,7 @@
 					if os_time() - recent_ips[req_body["ip"]] < throttle_time then
 						recent_ips[req_body["ip"]] = os_time()
 						module:log("warn", "JSON Registration request from %s has been throttled.", req_body["ip"])
-						return http_response(503, "Woah... How many users you want to register..? Request throttled, wait a bit and try again.")
+						return http_response(event, 503, "Woah... How many users you want to register..? Request throttled, wait a bit and try again.")
 					end
 					recent_ips[req_body["ip"]] = os_time()
 				end