# HG changeset patch # User Kim Alvefur # Date 1397221124 -7200 # Node ID f67eacb1ac9f693ca38869df3768e746b52d80ca # Parent 465e5d79551bd584373b6d9a67717657fa4c4045 mod_candy: Redirect from /candy -> /candy/ diff -r 465e5d79551b -r f67eacb1ac9f mod_candy/mod_candy.lua --- a/mod_candy/mod_candy.lua Thu Apr 10 22:40:11 2014 +0200 +++ b/mod_candy/mod_candy.lua Fri Apr 11 14:58:44 2014 +0200 @@ -23,6 +23,10 @@ })); end; ["GET /*"] = serve(module:get_directory().."/www_files"); + GET = function(event) + event.response.headers.location = event.request.path.."/"; + return 301; + end; } });