Software /
code /
prosody
Changeset
5466:e3b9dc9dd940
net.http: Swap response and request parameters passed to callback (will break some modules)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 12 Apr 2013 00:31:05 +0100 |
parents | 5465:55784431ddba |
children | 5467:9b7c919bf238 5468:2660407c3b73 |
files | net/http.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/net/http.lua Thu Apr 11 21:55:20 2013 +0100 +++ b/net/http.lua Fri Apr 12 00:31:05 2013 +0100 @@ -76,8 +76,7 @@ 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 - request.callback(r.body, r.code, request, r); + request.callback(r.body, r.code, r, request); request.callback = nil; end destroy_request(request);