diff web/src/luan/modules/web/web_run.luan @ 271:82a3ebcfbafa

add internal tests git-svn-id: https://luan-java.googlecode.com/svn/trunk@272 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 31 Oct 2014 04:27:50 +0000
parents 392105b660d7
children b669cdaf54b7
line wrap: on
line diff
--- a/web/src/luan/modules/web/web_run.luan	Thu Oct 30 20:29:33 2014 +0000
+++ b/web/src/luan/modules/web/web_run.luan	Fri Oct 31 04:27:50 2014 +0000
@@ -1,9 +1,9 @@
-import "Io"
-import "web/Http"
-import "String"
+import "luan:Io"
+import "luan:web/Http"
+import "luan:String"
 
 local function lines(s)
-	local matcher = String.gmatch(s,"([^\n]*)\n|([^\n])+$")
+	local matcher = s.gmatch "([^\n]*)\n|([^\n])+$"
 	return function()
 		local m1, m2 = matcher()
 		return m1 or m2
@@ -33,7 +33,7 @@
 		local run = load(code,"<web_run>",env)
 		run()
 	catch e do
-		Http.response.set_content_type "text/plain"
+		Http.response.content_type = "text/plain"
 		print(e)
 		print()
 		print()