Mercurial Hosting > luan
diff src/luan/modules/http/Server.luan @ 1414:4abf88ec66de
add Http.is_serving
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 08 Oct 2019 12:17:31 -0600 |
parents | 27efb1fcbcb5 |
children | 9ab267b9427c |
line wrap: on
line diff
--- a/src/luan/modules/http/Server.luan Sun Oct 06 22:23:11 2019 -0600 +++ b/src/luan/modules/http/Server.luan Tue Oct 08 12:17:31 2019 -0600 @@ -36,6 +36,7 @@ end dir = gsub(dir,"/$","") -- remove trailing '/' if any Http.dir = dir + Http.is_serving = true function Io.schemes.site(path) return uri( dir..path ) end