Diff

net/http.lua @ 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
parent 8114:12df41a5a4b1
child 8121:a33a87f13155
child 8195:3accfae91946
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);