comparison mod_candy/mod_candy.lua @ 1384:f67eacb1ac9f

mod_candy: Redirect from /candy -> /candy/
author Kim Alvefur <zash@zash.se>
date Fri, 11 Apr 2014 14:58:44 +0200
parents 6b34cc81e15d
children 991a5f74f848
comparison
equal deleted inserted replaced
1383:465e5d79551b 1384:f67eacb1ac9f
21 host = module:get_host(); 21 host = module:get_host();
22 anonymous = module:get_option_string("authentication") == "anonymous"; 22 anonymous = module:get_option_string("authentication") == "anonymous";
23 })); 23 }));
24 end; 24 end;
25 ["GET /*"] = serve(module:get_directory().."/www_files"); 25 ["GET /*"] = serve(module:get_directory().."/www_files");
26 GET = function(event)
27 event.response.headers.location = event.request.path.."/";
28 return 301;
29 end;
26 } 30 }
27 }); 31 });
28 32