diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-12-22 22:01:49 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-12-22 22:01:49 +0000 |
commit | 97c4dc41bd6579d9aa216037263c1792f6f1e0c7 (patch) | |
tree | 89e6712f50064ffb0c4b8fd8bb2a5cd3362e14ac /net | |
parent | 5c9d80dadfe20ddb1647584e623ec78ec334915a (diff) | |
download | prosody-97c4dc41bd6579d9aa216037263c1792f6f1e0c7.tar.gz prosody-97c4dc41bd6579d9aa216037263c1792f6f1e0c7.zip |
Fix nil status code for http request callbacks
Diffstat (limited to 'net')
-rw-r--r-- | net/http.lua | 2 |
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 |