# HG changeset patch # User Link Mauve # Date 1744218321 -7200 # Node ID b74ec363de080beb01c2324157c060d62d11df06 # Parent dfdf0bf1e84f169b0f52ad72c7b5d2f93054447d mod_jsxc: Remove compatibility with 0.11 diff -r dfdf0bf1e84f -r b74ec363de08 mod_jsxc/mod_jsxc.lua --- a/mod_jsxc/mod_jsxc.lua Wed Apr 09 19:05:14 2025 +0200 +++ b/mod_jsxc/mod_jsxc.lua Wed Apr 09 19:05:21 2025 +0200 @@ -19,17 +19,9 @@ local serve_dist = nil; local resources = module:get_option_path("jsxc_resources"); if resources then - local serve; - if prosody.process_type == "prosody" then - -- Prosody >= trunk / 0.12 - local http_files = require "net.http.files"; - serve = http_files.serve; - else - -- Prosody <= 0.11 - serve = module:depends "http_files".serve; - end + local http_files = require "net.http.files"; local mime_map = module:shared("/*/http_files/mime").types or { css = "text/css", js = "application/javascript" }; - serve_dist = serve({ path = resources, mime_map = mime_map }); + serve_dist = http_files.serve({ path = resources, mime_map = mime_map }); cdn_url = module:http_url(); end