diff src/luan/tools/WebServlet.java @ 81:9df729fa4419

minor git-svn-id: https://luan-java.googlecode.com/svn/trunk@82 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Sat, 16 Feb 2013 06:58:00 +0000
parents 4bf3d0c0b6b9
children cca4f8522893
line wrap: on
line diff
--- a/src/luan/tools/WebServlet.java	Fri Feb 15 23:59:32 2013 +0000
+++ b/src/luan/tools/WebServlet.java	Sat Feb 16 06:58:00 2013 +0000
@@ -50,7 +50,7 @@
 		return luan;
 	}
 
-	protected  LuanState getLuanState() throws LuanException {
+	protected  LuanState getLuanState(HttpServletRequest request) throws LuanException {
 		synchronized(this) {
 			if( luanState == null )
 				luanState = newLuanState();
@@ -62,7 +62,7 @@
 		throws ServletException, IOException
 	{
 		try {
-			LuanState luan = getLuanState();
+			LuanState luan = getLuanState(request);
 			HttpLib.service(luan,request,response);
 		} catch(LuanException e) {
 			throw new LuanRuntimeException(e);