changeset 1180:8ca49f5e114d

remove use_jetty
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 14 Feb 2018 16:49:56 -0700
parents f9136432847e
children 51d1342e25ad
files src/luan/host/Init.luan src/luan/modules/http/jetty/serve.luan src/luan/modules/http/jetty/use_jetty.luan
diffstat 3 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/host/Init.luan	Wed Feb 14 16:41:36 2018 -0700
+++ b/src/luan/host/Init.luan	Wed Feb 14 16:49:56 2018 -0700
@@ -1,4 +1,6 @@
-require "luan:http/jetty/use_jetty.luan"
+local Package = require "luan:Package.luan"
+Package.loaded["luan:http/Http.luan"] = require "luan:http/jetty/Http.luan"
+
 local Luan = require "luan:Luan.luan"
 local error = Luan.error
 local String = require "luan:String.luan"
--- a/src/luan/modules/http/jetty/serve.luan	Wed Feb 14 16:41:36 2018 -0700
+++ b/src/luan/modules/http/jetty/serve.luan	Wed Feb 14 16:49:56 2018 -0700
@@ -1,3 +1,6 @@
-require "luan:http/jetty/use_jetty.luan"
+local Package = require "luan:Package.luan"
+Package.loaded["luan:http/Http.luan"] = require "luan:http/jetty/Http.luan"
+Package.loaded["luan:http/Server.luan"] = require "luan:http/jetty/Server.luan"
+
 local Luan = require "luan:Luan.luan"
 Luan.load_file("luan:http/serve.luan")(...)
--- a/src/luan/modules/http/jetty/use_jetty.luan	Wed Feb 14 16:41:36 2018 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-local Package = require "luan:Package.luan"
-Package.loaded["luan:http/Http.luan"] = require "luan:http/jetty/Http.luan"
-Package.loaded["luan:http/Server.luan"] = require "luan:http/jetty/Server.luan"
-return true