Mercurial Hosting > luan
diff web/src/luan/modules/web/Web_server.luan @ 267:1507149fc447
rename Io.get() to Io.Uri()
git-svn-id: https://luan-java.googlecode.com/svn/trunk@268 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 29 Oct 2014 22:05:55 +0000 |
parents | 9e0d4452e649 |
children | eb27e765affb |
line wrap: on
line diff
--- a/web/src/luan/modules/web/Web_server.luan Wed Oct 29 16:31:48 2014 +0000 +++ b/web/src/luan/modules/web/Web_server.luan Wed Oct 29 22:05:55 2014 +0000 @@ -74,14 +74,14 @@ dir = dir.gsub("/$","") -- remove trailing '/' if any Http.dir = dir function Io.protocols.site(path,loading) - return Io.get( dir..path, loading ) + return Io.Uri( dir..path, loading ) end authentication_handler.setPassword(private_password) local base = dir if base.match("^classpath:") ~= nil then base = dir.."#"..welcome_file.."#"..welcome_file..".luan" end - resource_handler.setResourceBase(Io.get(base).to_string()) + resource_handler.setResourceBase(Io.Uri(base).to_string()) resource_handler.setWelcomeFiles {welcome_file} luan_handler.setWelcomeFile(welcome_file) local server = Server.new(port)