Mercurial > prosody-hg
comparison plugins/mod_httpserver.lua @ 1552:334b66f614a6
mod_httpserver: Update to use new new_from_config() too
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 14 Jul 2009 21:04:22 +0100 |
| parents | dff620405503 |
| children | c7bb2264e3b8 3e17002221eb |
comparison
equal
deleted
inserted
replaced
| 1551:c6646e806d18 | 1552:334b66f614a6 |
|---|---|
| 26 f:close(); | 26 f:close(); |
| 27 return data; | 27 return data; |
| 28 end | 28 end |
| 29 | 29 |
| 30 local ports = config.get(module.host, "core", "http_ports") or { 5280 }; | 30 local ports = config.get(module.host, "core", "http_ports") or { 5280 }; |
| 31 httpserver.new_from_config(ports, handle_request); | 31 httpserver.new_from_config(ports, "files", handle_request); |
