Changeset

1037:cb5fdce8dcec

net.http: Fix potential nil access
author Matthew Wild <mwild1@gmail.com>
date Wed, 22 Apr 2009 20:29:35 +0100
parents 1036:b2e19c66ec7f
children 1038:90f663769b75
files net/http.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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