# HG changeset patch # User Kim Alvefur # Date 1573918785 -3600 # Node ID abfc05495d8b0b76973ec07f4ad82153a8eeb386 # Parent c765eca809e359bbb2b196ca2e9245f74f004e28 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. diff -r c765eca809e3 -r abfc05495d8b plugins/mod_http.lua --- 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";