Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
10408:c765eca809e3 | 10409:abfc05495d8b |
---|---|
5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
7 -- | 7 -- |
8 | 8 |
9 module:set_global(); | 9 module:set_global(); |
10 module:depends("http_errors"); | 10 pcall(function () |
11 module:depends("http_errors"); | |
12 end); | |
11 | 13 |
12 local portmanager = require "core.portmanager"; | 14 local portmanager = require "core.portmanager"; |
13 local moduleapi = require "core.moduleapi"; | 15 local moduleapi = require "core.moduleapi"; |
14 local url_parse = require "socket.url".parse; | 16 local url_parse = require "socket.url".parse; |
15 local url_build = require "socket.url".build; | 17 local url_build = require "socket.url".build; |