diff src/luan/lib/HttpLib.java @ 115:eacf6ce1b47d

add IoLib git-svn-id: https://luan-java.googlecode.com/svn/trunk@116 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 29 May 2014 09:26:44 +0000
parents c6633e5f0cc5
children d00f41edbbd6
line wrap: on
line diff
--- a/src/luan/lib/HttpLib.java	Mon May 26 05:39:54 2014 +0000
+++ b/src/luan/lib/HttpLib.java	Thu May 29 09:26:44 2014 +0000
@@ -36,7 +36,7 @@
 	{
 		LuanFunction fn = (LuanFunction)luan.get(FN_NAME);
 		ServletOutputStream sout = response.getOutputStream();
-		luan.out = new PrintStream(sout);
+		luan.set( "Io.stdout", IoLib.writer(new PrintStream(sout)) );
 
 		LuanTable module = (LuanTable)luan.loaded().get(NAME);