Software /
code /
prosody
Comparison
net/httpserver.lua @ 8679:adc17a2bd6fd
net.httpserver: Make function local, fixes loading since there is no environment [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Mar 2018 13:20:19 +0100 |
parent | 8555:4f0f5b49bb03 |
child | 12974:ba409c67353b |
comparison
equal
deleted
inserted
replaced
8678:b86f789ac9bd | 8679:adc17a2bd6fd |
---|---|
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 -- luacheck: std none |
7 | 7 |
8 function fail() | 8 local function fail() |
9 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"); |
10 log("error", "Legacy HTTP API usage, %s", traceback("", 2)); | 10 log("error", "Legacy HTTP API usage, %s", traceback("", 2)); |
11 end | 11 end |
12 | 12 |
13 return { | 13 return { |