aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-22 20:29:35 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-22 20:29:35 +0100
commitc8addd5dd0703701aa3eded7c040ffedd2840922 (patch)
treebaee61099c4dc19862df826a8435cc8c95e879f4 /net
parentbbd191b78e730a8e55eb81183541bc79dd1430de (diff)
downloadprosody-c8addd5dd0703701aa3eded7c040ffedd2840922.tar.gz
prosody-c8addd5dd0703701aa3eded7c040ffedd2840922.zip
net.http: Fix potential nil access
Diffstat (limited to 'net')
-rw-r--r--net/http.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/http.lua b/net/http.lua
index 29da41ea..24828ffe 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -9,8 +9,8 @@ local connlisteners_get = require "net.connlisteners".get;
local listener = connlisteners_get("httpclient") or error("No httpclient listener!");
local t_insert, t_concat = table.insert, table.concat;
-local tonumber, tostring, pairs, xpcall, select, debug_traceback =
- tonumber, tostring, pairs, xpcall, select, debug.traceback;
+local tonumber, tostring, pairs, xpcall, select, debug_traceback, char =
+ tonumber, tostring, pairs, xpcall, select, debug.traceback, string.char;
local log = require "util.logger".init("http");
local print = function () end