Mercurial Hosting > luan
diff http/src/luan/modules/http/Server.luan @ 693:ca169567ce07
module URIs must now include ".luan"
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 19 Apr 2016 15:54:11 -0600 |
parents | 35dde32c02ab |
children | 20051fe2a943 |
line wrap: on
line diff
--- a/http/src/luan/modules/http/Server.luan Mon Apr 18 20:40:21 2016 -0600 +++ b/http/src/luan/modules/http/Server.luan Tue Apr 19 15:54:11 2016 -0600 @@ -1,10 +1,10 @@ -local String = require "luan:String" +local String = require "luan:String.luan" local gsub = String.gsub local matches = String.matches -local Io = require "luan:Io" -local Package = require "luan:Package" -local Http = require "luan:http/Http" -require "luan:logging/init" -- initialize logging +local Io = require "luan:Io.luan" +local Package = require "luan:Package.luan" +local Http = require "luan:http/Http.luan" +require "luan:logging/init.luan" -- initialize logging java() local Server = require "java:org.eclipse.jetty.server.Server" @@ -76,8 +76,8 @@ function M.init(dir) dir = gsub(dir,"/$","") -- remove trailing '/' if any Http.dir = dir - function Io.schemes.site(path,add_extension) - return Io.uri( dir..path, add_extension ) + function Io.schemes.site(path) + return Io.uri( dir..path ) end M.authentication_handler.setPassword(M.private_password) local base = dir