net.http: Add request.url, which is the original full URL as a string
authorMatthew Wild <mwild1@gmail.com>
Fri, 21 Apr 2017 16:42:25 +0100
changeset 8118 375cf924fce1
parent 8117 12df41a5a4b1
child 8119 76ac8b617402
net.http: Add request.url, which is the original full URL as a string
net/http.lua
--- a/net/http.lua	Fri Apr 21 16:42:06 2017 +0100
+++ b/net/http.lua	Fri Apr 21 16:42:25 2017 +0100
@@ -125,6 +125,7 @@
 
 local function request(self, u, ex, callback)
 	local req = url.parse(u);
+	req.url = u;
 
 	if not (req and req.host) then
 		callback("invalid-url", 0, req);