Software /
code /
prosody
Diff
net/http.lua @ 1037:cb5fdce8dcec
net.http: Fix potential nil access
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 22 Apr 2009 20:29:35 +0100 |
parent | 923:c63f9bc45a85 |
child | 1112:e8a00a2ea910 |
line wrap: on
line diff
--- a/net/http.lua Wed Apr 22 20:19:33 2009 +0100 +++ b/net/http.lua Wed Apr 22 20:29:35 2009 +0100 @@ -9,8 +9,8 @@ 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