diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-07-07 13:52:45 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-07-07 13:52:45 +0100 |
commit | 371bf09ef7c9e518216348cedac7e175615aefc3 (patch) | |
tree | b4e288ebff9a45c6b6674f679d5fa15d83678ad8 | |
parent | 18525691a4b86ceefd7627abb8744c1f4d4fb2f0 (diff) | |
parent | bfd9789cb197c9d5e2fcba6023976c409172401e (diff) | |
download | prosody-371bf09ef7c9e518216348cedac7e175615aefc3.tar.gz prosody-371bf09ef7c9e518216348cedac7e175615aefc3.zip |
Merge 0.11->trunk
-rw-r--r-- | net/http.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/http.lua b/net/http.lua index 5fbed4fe..17c755cf 100644 --- a/net/http.lua +++ b/net/http.lua @@ -185,14 +185,15 @@ end local function request(self, u, ex, callback) local req = url.parse(u); - req.url = u; - req.http = self; if not (req and req.host) then callback("invalid-url", 0, req); return nil, "invalid-url"; end + req.url = u; + req.http = self; + if not req.path then req.path = "/"; end |