mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 06:37:37 +03:00
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.
This commit is contained in:
parent
5af4eb8be2
commit
fd9ccf20d5
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@
|
||||||
--
|
--
|
||||||
|
|
||||||
module:set_global();
|
module:set_global();
|
||||||
module:depends("http_errors");
|
pcall(function ()
|
||||||
|
module:depends("http_errors");
|
||||||
|
end);
|
||||||
|
|
||||||
local portmanager = require "core.portmanager";
|
local portmanager = require "core.portmanager";
|
||||||
local moduleapi = require "core.moduleapi";
|
local moduleapi = require "core.moduleapi";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue