Mercurial Hosting > luan
diff http/src/luan/modules/http/Http_test.luan @ 629:35dde32c02ab 0.15
change String.matches()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 18 Jan 2016 23:07:52 -0700 |
parents | 1e69d9c21461 |
children | ca169567ce07 |
line wrap: on
line diff
--- a/http/src/luan/modules/http/Http_test.luan Mon Jan 18 06:42:50 2016 -0700 +++ b/http/src/luan/modules/http/Http_test.luan Mon Jan 18 23:07:52 2016 -0700 @@ -13,7 +13,7 @@ M.cookie = {} function M.get_page(path) - if M.welcome_file ~= nil and matches(path,".*/") then + if M.welcome_file ~= nil and matches(path,"/$") then path = path .. M.welcome_file end local old_out = Io.stdout