diff mod_register_web/mod_register_web.lua @ 1239:cc5cbeeb9fc7

mod_register_web: Handle URLs with a trailing slash
author Kim Alvefur <zash@zash.se>
date Sun, 01 Dec 2013 01:34:11 +0100
parents 752285859607
children 34fbe58d19da
line wrap: on
line diff
--- a/mod_register_web/mod_register_web.lua	Sat Nov 30 23:46:54 2013 +0100
+++ b/mod_register_web/mod_register_web.lua	Sun Dec 01 01:34:11 2013 +0100
@@ -173,6 +173,8 @@
 module:provides("http", {
 	route = {
 		GET = generate_page;
+		["GET /"] = generate_page;
 		POST = handle_form;
+		["POST /"] = handle_form;
 	};
 });