diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-04-22 20:29:35 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-04-22 20:29:35 +0100 |
commit | c8addd5dd0703701aa3eded7c040ffedd2840922 (patch) | |
tree | baee61099c4dc19862df826a8435cc8c95e879f4 /net/http.lua | |
parent | bbd191b78e730a8e55eb81183541bc79dd1430de (diff) | |
download | prosody-c8addd5dd0703701aa3eded7c040ffedd2840922.tar.gz prosody-c8addd5dd0703701aa3eded7c040ffedd2840922.zip |
net.http: Fix potential nil access
Diffstat (limited to 'net/http.lua')
-rw-r--r-- | net/http.lua | 4 |
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 |