Changeset

8115:375cf924fce1

net.http: Add request.url, which is the original full URL as a string
author Matthew Wild <mwild1@gmail.com>
date Fri, 21 Apr 2017 16:42:25 +0100
parents 8114:12df41a5a4b1
children 8116:76ac8b617402
files net/http.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);