Software /
code /
prosody
Changeset
10409:abfc05495d8b
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 16 Nov 2019 16:39:45 +0100 |
parents | 10408:c765eca809e3 |
children | 10411:db2a06b9ff98 |
files | plugins/mod_http.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_http.lua Fri Nov 15 16:49:31 2019 +0100 +++ b/plugins/mod_http.lua Sat Nov 16 16:39:45 2019 +0100 @@ -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";