Software /
code /
prosody
Comparison
net/httpserver.lua @ 4784:e10b623ccecb
net.httpserver: Add compatibility stub
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 16:41:35 +0100 |
child | 4797:e239668aa6d2 |
comparison
equal
deleted
inserted
replaced
4783:21c513a89951 | 4784:e10b623ccecb |
---|---|
1 -- COMPAT w/pre-0.9 | |
2 local log = require "util.logger".init("net.httpserver"); | |
3 local traceback = debug.traceback; | |
4 | |
5 module "httpserver" | |
6 | |
7 function fail() | |
8 log("error", "Attempt to use legacy HTTP API. For more info see http://prosody.im/doc/developers/legacy_http"); | |
9 log("error", "Legacy HTTP API usage, %s", traceback("", 2)); | |
10 end | |
11 | |
12 new, new_from_config = fail, fail; | |
13 set_default_handler = fail; | |
14 | |
15 return _M; |