# HG changeset patch # User Matthew Wild # Date 1365723065 -3600 # Node ID e3b9dc9dd9402d9b80b1ff285bb34dd0a5da08fe # Parent 55784431ddba0baf3b19366008baee40adcdc2a6 net.http: Swap response and request parameters passed to callback (will break some modules) diff -r 55784431ddba -r e3b9dc9dd940 net/http.lua --- 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);