# HG changeset patch # User Matthew Wild # Date 1240428575 -3600 # Node ID cb5fdce8dcec54323d68dbe8e4e30ac0badce636 # Parent b2e19c66ec7f9d919d8d24877da328b903280262 net.http: Fix potential nil access diff -r b2e19c66ec7f -r cb5fdce8dcec net/http.lua --- 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