# HG changeset patch # User Matthew Wild # Date 1313867301 14400 # Node ID 0b9ed126286e1827d6543237d97a7ab767e1b7da # Parent 16fd8061964e0196793c8c7e44bd848fac948585 net.http: Small fix to prevent traceback when connection fails before sending the request diff -r 16fd8061964e -r 0b9ed126286e net/http.lua --- a/net/http.lua Sat Aug 20 15:06:14 2011 -0400 +++ b/net/http.lua Sat Aug 20 15:08:21 2011 -0400 @@ -61,6 +61,7 @@ local function request_reader(request, data, startpos) if not request.parser then + if not data then return; end local function success_cb(r) if request.callback then for k,v in pairs(r) do request[k] = v; end