changeset 4980 | 75b6e5df65f9 |
parent 4608 | f0efbb0b0b5b |
--- a/mod_http_libjs/mod_http_libjs.lua Mon Jul 18 13:58:27 2022 +0200 +++ b/mod_http_libjs/mod_http_libjs.lua Mon Jul 18 22:47:54 2022 +0200 @@ -4,10 +4,10 @@ }; local serve; -if not pcall(function () +if prosody.process_type == "prosody" then local http_files = require "net.http.files"; serve = http_files.serve; -end) then +else serve = module:depends"http_files".serve; end