# HG changeset patch # User Matthew Wild # Date 1229983309 0 # Node ID fe1e01a06729cc8b115c628009780c70a3369bcd # Parent 8f3db0bd2bb4b14dc9961a9c650cf32a52db9652 Fix nil status code for http request callbacks diff -r 8f3db0bd2bb4 -r fe1e01a06729 net/http.lua --- a/net/http.lua Mon Dec 22 13:29:59 2008 +0000 +++ b/net/http.lua Mon Dec 22 22:01:49 2008 +0000 @@ -81,7 +81,7 @@ return request.callback(0, "invalid-status-line", request); end - request.responsecode, request.responseversion = code, http; + request.code, request.responseversion = code, http; if request.onlystatus or not expectbody(request, tonumber(code)) then if request.callback then