net.http: Add request.url, which is the original full URL as a string

remotes/origin/0.11
Matthew Wild 9 years ago
parent 66a3d68d56
commit 3371e3eae3
  1. 1
      net/http.lua

@ -125,6 +125,7 @@ end
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);

Loading…
Cancel
Save