Changeset

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 1238:752285859607
children 1240:e0d97eb52ab8
files mod_register_web/mod_register_web.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;
 	};
 });