# HG changeset patch # User Kim Alvefur # Date 1385858051 -3600 # Node ID cc5cbeeb9fc715f5cf715b37ce04e8146d5c174d # Parent 7522858596075d09c1f2e238522ac96533e880e5 mod_register_web: Handle URLs with a trailing slash diff -r 752285859607 -r cc5cbeeb9fc7 mod_register_web/mod_register_web.lua --- 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; }; });