aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-12-22 22:01:49 +0000
committerMatthew Wild <mwild1@gmail.com>2008-12-22 22:01:49 +0000
commit97c4dc41bd6579d9aa216037263c1792f6f1e0c7 (patch)
tree89e6712f50064ffb0c4b8fd8bb2a5cd3362e14ac /net
parent5c9d80dadfe20ddb1647584e623ec78ec334915a (diff)
downloadprosody-97c4dc41bd6579d9aa216037263c1792f6f1e0c7.tar.gz
prosody-97c4dc41bd6579d9aa216037263c1792f6f1e0c7.zip
Fix nil status code for http request callbacks
Diffstat (limited to 'net')
-rw-r--r--net/http.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http.lua b/net/http.lua
index a661bb52..00949901 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -81,7 +81,7 @@ local function request_reader(request, data, startpos)
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