changeset 1425:b6030fa18839

hosting fix
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 24 Nov 2019 16:04:58 -0700
parents 9ab267b9427c
children 94a6a209d4e2
files conv.txt src/luan/host/WebHandler.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/conv.txt	Fri Nov 22 22:58:39 2019 -0700
+++ b/conv.txt	Sun Nov 24 16:04:58 2019 -0700
@@ -1,5 +1,5 @@
+json_compressed_string
 literal
-
 JsonToString
 
 Hosting.send_mail
--- a/src/luan/host/WebHandler.java	Fri Nov 22 22:58:39 2019 -0700
+++ b/src/luan/host/WebHandler.java	Sun Nov 24 16:04:58 2019 -0700
@@ -59,13 +59,13 @@
 	}
 
 	private static void initLuan(Luan luan,String dir,String domain) {
-		security(luan,dir);
 		try {
 			LuanFunction fn = Luan.loadClasspath(luan,"luan/host/init.luan");
 			fn.call(dir,domain);
 		} catch(LuanException e) {
 			throw new LuanRuntimeException(e);
 		}
+		security(luan,dir);
 	}
 
 	public static void removeHandler(String domain) {