aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/http.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/http.lua b/net/http.lua
index 2deeae14..c417ebec 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -293,7 +293,8 @@ local function new(options)
if code == 0 then
reject(http_errors.new(body, { request = a }));
else
- resolve({ request = b, response = a });
+ a.request = b;
+ resolve(a);
end
end);
end);