Software /
code /
prosody
Diff
plugins/mod_http.lua @ 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 |
parent | 10315:d4c538a7d655 |
child | 10460:5ce6cbb5ce6a |
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";