equal
deleted
inserted
replaced
1 -- COMPAT w/pre-0.9 |
1 -- COMPAT w/pre-0.9 |
2 local log = require "util.logger".init("net.httpserver"); |
2 local log = require "util.logger".init("net.httpserver"); |
3 local traceback = debug.traceback; |
3 local traceback = debug.traceback; |
4 |
4 |
5 local _ENV = nil; |
5 local _ENV = nil; |
|
6 -- luacheck: std none |
6 |
7 |
7 function fail() |
8 function fail() |
8 log("error", "Attempt to use legacy HTTP API. For more info see https://prosody.im/doc/developers/legacy_http"); |
9 log("error", "Attempt to use legacy HTTP API. For more info see https://prosody.im/doc/developers/legacy_http"); |
9 log("error", "Legacy HTTP API usage, %s", traceback("", 2)); |
10 log("error", "Legacy HTTP API usage, %s", traceback("", 2)); |
10 end |
11 end |