Software /
code /
prosody
Comparison
plugins/mod_http.lua @ 4774:b2ed4e1bcb6e
mod_http: Depend on mod_http_errors
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 14:46:36 +0100 |
parent | 4736:3514338c59c3 |
child | 4892:6c8074f47ca4 |
comparison
equal
deleted
inserted
replaced
4773:ee55956597f4 | 4774:b2ed4e1bcb6e |
---|---|
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 | 11 |
11 local server = require "net.http.server"; | 12 local server = require "net.http.server"; |
12 | 13 |
13 server.set_default_host(module:get_option_string("http_default_host")); | 14 server.set_default_host(module:get_option_string("http_default_host")); |
14 | 15 |