aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-16 16:39:45 +0100
committerKim Alvefur <zash@zash.se>2019-11-16 16:39:45 +0100
commit70a81b5ffdb84e5dc082fee557dc9e3af237bc27 (patch)
tree1f67aa6b41817c88868b5e489905521fbe29d0fe
parent1153c39ab12715159d897b4389319bcabc5a0d33 (diff)
downloadprosody-70a81b5ffdb84e5dc082fee557dc9e3af237bc27.tar.gz
prosody-70a81b5ffdb84e5dc082fee557dc9e3af237bc27.zip
mod_http: Soften dependency on mod_http_errors
This allows disabling mod_http_errors by adding it to moduless_disabled and ensures mod_http loads even if the error pages aren't as pretty.
-rw-r--r--plugins/mod_http.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index 8ef06dc2..081aa7e9 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -7,7 +7,9 @@
--
module:set_global();
-module:depends("http_errors");
+pcall(function ()
+ module:depends("http_errors");
+end);
local portmanager = require "core.portmanager";
local moduleapi = require "core.moduleapi";