changeset 1603:bd125ee375d2

luanhost fix
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 11 Apr 2021 14:45:03 -0600
parents 55d7b60c074d
children 8a7519dee55c
files src/luan/host/run.luan
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/host/run.luan	Fri Apr 09 23:46:12 2021 -0600
+++ b/src/luan/host/run.luan	Sun Apr 11 14:45:03 2021 -0600
@@ -20,8 +20,10 @@
 -- web server
 
 local Server = require "java:goodjava.webserver.Server"
+local SafeHandler = require "java:goodjava.webserver.handlers.SafeHandler"
 
 local handler = WebHandler.new(Hosted.sites_dir)
+handler = SafeHandler.new(handler)
 local server = Server.ForAddress.new("127.0.0.1",8080,handler)
 server.start()