Mercurial Hosting > luan
diff http/src/luan/modules/http/Server.luan @ 629:35dde32c02ab 0.15
change String.matches()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 18 Jan 2016 23:07:52 -0700 |
parents | 473e456444ff |
children | ca169567ce07 |
line wrap: on
line diff
--- a/http/src/luan/modules/http/Server.luan Mon Jan 18 06:42:50 2016 -0700 +++ b/http/src/luan/modules/http/Server.luan Mon Jan 18 23:07:52 2016 -0700 @@ -1,6 +1,6 @@ local String = require "luan:String" local gsub = String.gsub -local match = String.match +local matches = String.matches local Io = require "luan:Io" local Package = require "luan:Package" local Http = require "luan:http/Http" @@ -81,7 +81,7 @@ end M.authentication_handler.setPassword(M.private_password) local base = dir - if match(base,"^classpath:") ~= nil then + if matches(base,"^classpath:") then base = dir.."#"..M.welcome_file.."#"..M.welcome_file..".luan" end M.resource_handler.setResourceBase(Io.uri(base).to_string())