diff options
author | Matthew Wild <mwild1@gmail.com> | 2017-04-21 16:42:25 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2017-04-21 16:42:25 +0100 |
commit | 3371e3eae3f1dc9db621519c8ccf045b1738d030 (patch) | |
tree | 1698a6fcbfb5042bc710b9fa361d1f7c65608610 /net/http.lua | |
parent | 66a3d68d562fb51a8b5b8918bf2e4d6a76e0519b (diff) | |
download | prosody-3371e3eae3f1dc9db621519c8ccf045b1738d030.tar.gz prosody-3371e3eae3f1dc9db621519c8ccf045b1738d030.zip |
net.http: Add request.url, which is the original full URL as a string
Diffstat (limited to 'net/http.lua')
-rw-r--r-- | net/http.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http.lua b/net/http.lua index 6d32b110..d820e471 100644 --- a/net/http.lua +++ b/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); |