diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-21 21:33:41 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-21 21:33:41 +0200 |
commit | 83cd0e7ba79e37d9f078e8272adedba69dc3bb7f (patch) | |
tree | 5b109a908208ffcc198967f1c34108532fbf1df7 | |
parent | 7c060d6be5a2fbc46a5a2bb9c6839edb42996a3e (diff) | |
download | prosody-83cd0e7ba79e37d9f078e8272adedba69dc3bb7f.tar.gz prosody-83cd0e7ba79e37d9f078e8272adedba69dc3bb7f.zip |
net.http.server: Fix default host logic
This was used to construct the event name previously
-rw-r--r-- | net/http/server.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/server.lua b/net/http/server.lua index a982d53f..2d9eed21 100644 --- a/net/http/server.lua +++ b/net/http/server.lua @@ -219,7 +219,7 @@ function handle_request(conn, request, finish_cb) err_code, err = 400, "Invalid path"; elseif not hosts[host] then if hosts[default_host] then - host = default_host; + request.host = default_host; elseif host then err_code, err = 404, "Unknown host: "..host; else |