Comparison

net/httpserver.lua @ 8555:4f0f5b49bb03

vairious: Add annotation when an empty environment is set [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 28 Feb 2018 20:06:26 +0100
parent 7359:a5a080c12c96
child 8679:adc17a2bd6fd
comparison
equal deleted inserted replaced
8554:12a68e0d0ecf 8555:4f0f5b49bb03
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