aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/http.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/http.lua b/net/http.lua
index b3bd5a67..4eb4a2ac 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -76,8 +76,7 @@ local function request_reader(request, data)
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);