Diff

net/http.lua @ 8707:fd39c44c0113

Merge 0.10 -> trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 04 Apr 2018 18:42:05 +0100
parent 8690:0f6623712239
parent 8706:e2919978673e
child 8731:6063f9211fd1
line wrap: on
line diff
--- a/net/http.lua	Fri Mar 30 12:12:50 2018 +0200
+++ b/net/http.lua	Wed Apr 04 18:42:05 2018 +0100
@@ -100,7 +100,7 @@
 		end
 
 		log("debug", "Request '%s': Calling callback, status %s", req.id, code or "---");
-		return log_if_failed(req.id, xpcall(function () return callback(content, code, request, response) end, handleerr));
+		return log_if_failed(req.id, xpcall(function () return callback(content, code, response, request) end, handleerr));
 	end
 	req.reader = request_reader;
 	req.state = "status";