Software /
code /
prosody
Comparison
net/http.lua @ 8730:de74bc49385e
net.http: Import setmetatable into local scope (fixes #1125)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 06 Apr 2018 01:42:35 +0200 |
parent | 8706:e2919978673e |
child | 8731:6063f9211fd1 |
comparison
equal
deleted
inserted
replaced
8708:c53e9e27acc6 | 8730:de74bc49385e |
---|---|
20 local t_insert, t_concat = table.insert, table.concat; | 20 local t_insert, t_concat = table.insert, table.concat; |
21 local pairs = pairs; | 21 local pairs = pairs; |
22 local tonumber, tostring, xpcall, traceback = | 22 local tonumber, tostring, xpcall, traceback = |
23 tonumber, tostring, xpcall, debug.traceback; | 23 tonumber, tostring, xpcall, debug.traceback; |
24 local error = error | 24 local error = error |
25 local setmetatable = setmetatable; | |
25 | 26 |
26 local log = require "util.logger".init("http"); | 27 local log = require "util.logger".init("http"); |
27 | 28 |
28 local _ENV = nil; | 29 local _ENV = nil; |
29 | 30 |