comparison mod_http_dir_listing/http_dir_listing/mod_http_dir_listing.lua @ 1095:cb21928bca1d

mod_http_dir_listing: Remove dependency on mod_http_files, global module depending on non-global does not work
author Kim Alvefur <zash@zash.se>
date Sun, 30 Jun 2013 00:50:28 +0200
parents 5db8debb4531
children 754c15641369
comparison
equal deleted inserted replaced
1094:158680bff642 1095:cb21928bca1d
11 local stat = lfs.attributes; 11 local stat = lfs.attributes;
12 local build_path = require"socket.url".build_path; 12 local build_path = require"socket.url".build_path;
13 local base64_encode = require"util.encodings".base64.encode; 13 local base64_encode = require"util.encodings".base64.encode;
14 local tag = require"util.stanza".stanza; 14 local tag = require"util.stanza".stanza;
15 local template = require"util.template"; 15 local template = require"util.template";
16
17 module:depends"http_files";
18 16
19 local mime = module:shared("/*/http_files/mime"); 17 local mime = module:shared("/*/http_files/mime");
20 18
21 local function get_resource(resource) 19 local function get_resource(resource)
22 local fh = assert(module:load_resource(resource)); 20 local fh = assert(module:load_resource(resource));