equal
deleted
inserted
replaced
1 -- luacheck: ignore 631 |
1 -- luacheck: ignore 631 |
2 module:depends("http"); |
2 module:depends("http"); |
3 local http_files |
3 local http_files |
4 if not pcall(function() |
4 if prosody.process_type == "prosody" then |
5 -- Prosody >= 0.12 |
5 -- Prosody >= 0.12 |
6 http_files = require "net.http.files"; |
6 http_files = require "net.http.files"; |
7 end) then |
7 else |
8 -- Prosody <= 0.11 |
8 -- Prosody <= 0.11 |
9 http_files = module:depends "http_files"; |
9 http_files = module:depends "http_files"; |
10 end |
10 end |
11 |
11 |
12 local app_config = module:get_option("site_apps", { |
12 local app_config = module:get_option("site_apps", { |