aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http.lua
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
commitfd9ccf20d5b652dbad1f37cecd540661f4642ee6 (patch)
tree1f67aa6b41817c88868b5e489905521fbe29d0fe /plugins/mod_http.lua
parent5af4eb8be2082c6b22f66037bb54d539f78ba942 (diff)
downloadprosody-fd9ccf20d5b652dbad1f37cecd540661f4642ee6.tar.gz
prosody-fd9ccf20d5b652dbad1f37cecd540661f4642ee6.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.
Diffstat (limited to 'plugins/mod_http.lua')
-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";