Mercurial Hosting > luan
diff web/src/luan/modules/web/Server.luan @ 462:2e79b47d02a2
remove all command line options;
add add_extension boolean arg to scheme fns;
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 06 May 2015 16:54:20 -0600 |
parents | 5b36f663a1b8 |
children | 55a86fc4701b |
line wrap: on
line diff
--- a/web/src/luan/modules/web/Server.luan Wed May 06 14:51:23 2015 -0600 +++ b/web/src/luan/modules/web/Server.luan Wed May 06 16:54:20 2015 -0600 @@ -72,8 +72,8 @@ function init(dir) dir = dir.gsub("/$","") -- remove trailing '/' if any Http.dir = dir - function Io.schemes.site(path) - return Io.uri( dir..path ) + function Io.schemes.site(path,add_extension) + return Io.uri( dir..path, add_extension ) end authentication_handler.setPassword(private_password) local base = dir