diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-06-16 19:30:22 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-06-16 19:30:22 +0000 |
commit | 65cde286cc146be7dea165c2cb34732cb8953a57 (patch) | |
tree | 9fc9a7629afb9789a29c0def6266a19b86f7a426 /libs/lucittpd/hostfiles/usr | |
parent | 8c359115f9d515d358403897f34c69757adf7af6 (diff) |
drop obsoleted lucittpd packages
Diffstat (limited to 'libs/lucittpd/hostfiles/usr')
-rw-r--r-- | libs/lucittpd/hostfiles/usr/lib/lucittpd/plugins/httpd.lua | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/libs/lucittpd/hostfiles/usr/lib/lucittpd/plugins/httpd.lua b/libs/lucittpd/hostfiles/usr/lib/lucittpd/plugins/httpd.lua deleted file mode 100644 index e40af98fd9..0000000000 --- a/libs/lucittpd/hostfiles/usr/lib/lucittpd/plugins/httpd.lua +++ /dev/null @@ -1,34 +0,0 @@ -function initialize() - local lucittpd = require "luci.ttpd.server" - server = lucittpd.Server(lucittpd.VHost()) -end - -function register() - local filehnd = require "luci.ttpd.handler.file" - local filehandler = filehnd.Simple(os.getenv("LUCI_SYSROOT") .. "/www") - server:get_default_vhost():set_default_handler(filehandler) -end - -function accept() - server:process({ - _read = function(...) - local chunk, err = webuci_read(...) - return chunk or (err and error(err, 0)) - end, - - _write = function(...) - local chunk, err = webuci_write(...) - return chunk or (err and error(err, 0)) - end, - - _close = function(...) - local chunk, err = webuci_close(...) - return chunk or (err and error(err, 0)) - end, - - _sendfile = function(...) - local chunk, err = webuci_sendfile(...) - return chunk or (err and error(err, 0)) - end - }) -end
\ No newline at end of file |