aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-04-06 01:42:35 +0200
committerKim Alvefur <zash@zash.se>2018-04-06 01:42:35 +0200
commitbb47d9eed064a133cbfaafb0e4de1203fcd8c138 (patch)
tree91ebc48c1faf1b19d1247ed690b86a87d7402d42 /net
parentc18db64434156ea04bfba7eb2b6bf168992b0530 (diff)
downloadprosody-bb47d9eed064a133cbfaafb0e4de1203fcd8c138.tar.gz
prosody-bb47d9eed064a133cbfaafb0e4de1203fcd8c138.zip
net.http: Import setmetatable into local scope (fixes #1125)
Diffstat (limited to 'net')
-rw-r--r--net/http.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http.lua b/net/http.lua
index cc67a45c..effb0ef5 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -22,6 +22,7 @@ local pairs = pairs;
local tonumber, tostring, xpcall, traceback =
tonumber, tostring, xpcall, debug.traceback;
local error = error
+local setmetatable = setmetatable;
local log = require "util.logger".init("http");