Mercurial Hosting > luan
comparison web/src/luan/modules/web/Web_server.luan @ 231:a35417bf493a
minor
git-svn-id: https://luan-java.googlecode.com/svn/trunk@232 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 01 Oct 2014 02:15:39 +0000 |
parents | f9e3e64132e1 |
children | 2b6f51d7af40 |
comparison
equal
deleted
inserted
replaced
230:4438cb2e04d0 | 231:a35417bf493a |
---|---|
68 | 68 |
69 | 69 |
70 function serve(dir) | 70 function serve(dir) |
71 dir = dir.gsub("/$","") -- remove trailing '/' if any | 71 dir = dir.gsub("/$","") -- remove trailing '/' if any |
72 Http.dir = dir | 72 Http.dir = dir |
73 Package.path = dir.."?.luan;java:luan/modules/?.luan" | 73 Package.path = dir .. "?.luan;java:luan/modules/?.luan" |
74 authentication_handler.setPassword(private_password) | 74 authentication_handler.setPassword(private_password) |
75 local base = dir | 75 local base = dir |
76 if base.match("^java:") ~= nil then | 76 if base.match("^java:") ~= nil then |
77 base = dir.."#"..welcome_file.."#"..welcome_file..".luan" | 77 base = dir.."#"..welcome_file.."#"..welcome_file..".luan" |
78 end | 78 end |