diff src/luan/modules/http/Server.luan @ 1424:9ab267b9427c

better load_file()
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 22 Nov 2019 22:58:39 -0700
parents 4abf88ec66de
children d9a5405a3102
line wrap: on
line diff
--- a/src/luan/modules/http/Server.luan	Tue Nov 19 17:42:11 2019 -0700
+++ b/src/luan/modules/http/Server.luan	Fri Nov 22 22:58:39 2019 -0700
@@ -38,7 +38,9 @@
 	Http.dir = dir
 	Http.is_serving = true
 	function Io.schemes.site(path)
-		return uri( dir..path )
+		local u = uri( dir..path )
+		u.uri_string = "site:"..path
+		return u
 	end
 end