Mercurial Hosting > luan
changeset 1314:51a1987b55a3
don't use NotFound handler
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Jan 2019 19:10:39 -0700 |
parents | 15af473045c4 |
children | 5763597ca5c0 |
files | src/luan/host/WebHandler.java src/luan/modules/http/Server.luan |
diffstat | 2 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/host/WebHandler.java Fri Jan 25 01:30:35 2019 -0700 +++ b/src/luan/host/WebHandler.java Tue Jan 29 19:10:39 2019 -0700 @@ -25,7 +25,6 @@ import luan.modules.JavaLuan; import luan.modules.PackageLuan; import luan.modules.http.LuanHandler; -import luan.modules.http.NotFound; public class WebHandler implements Handler { @@ -164,11 +163,9 @@ String loggerRoot = (String)init.rawGet("logger_root"); LuanHandler luanHandler = new LuanHandler(luan,loggerRoot); - NotFound notFoundHandler = new NotFound(luanHandler); Handler handler = luanHandler; handler = new IndexHandler(handler); - handler = new ListHandler( handler, notFoundHandler ); String logDir = dir + "/site/private/local/logs/web"; new File(logDir).mkdirs();
--- a/src/luan/modules/http/Server.luan Fri Jan 25 01:30:35 2019 -0700 +++ b/src/luan/modules/http/Server.luan Tue Jan 29 19:10:39 2019 -0700 @@ -23,7 +23,6 @@ local LogHandler = require "java:luan.webserver.handlers.LogHandler" local ListHandler = require "java:luan.webserver.handlers.ListHandler" local LuanHandler = require "java:luan.modules.http.LuanHandler" -local NotFound = require "java:luan.modules.http.NotFound" local System = require "java:java.lang.System" @@ -67,10 +66,9 @@ local file_handler = FileHandler.new(dir_path) local dir_handler = DirHandler.new(file_handler) local luan_handler = LuanHandler.new() - local not_found_hander = NotFound.new(luan_handler) local handler = ListHandler.new( file_handler, luan_handler ) handler = IndexHandler.new(handler) - handler = ListHandler.new( handler, dir_handler, not_found_hander ) + handler = ListHandler.new( handler, dir_handler ) handler = ContentTypeHandler.new(handler) handler = SafeHandler.new(handler) handler = LogHandler.new(handler)