Changeset

633:fe1e01a06729

Fix nil status code for http request callbacks
author Matthew Wild <mwild1@gmail.com>
date Mon, 22 Dec 2008 22:01:49 +0000
parents 632:8f3db0bd2bb4
children 634:1af93ea23f96
files net/http.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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