aboutsummaryrefslogtreecommitdiffstats
path: root/net/http/server.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-21 21:33:41 +0200
committerKim Alvefur <zash@zash.se>2018-09-21 21:33:41 +0200
commitaa34271523fce1875037d19d7c5400876991d347 (patch)
tree5b109a908208ffcc198967f1c34108532fbf1df7 /net/http/server.lua
parent3ba94daf4b335de2b15b09c7d6fcfe6a3fecf503 (diff)
downloadprosody-aa34271523fce1875037d19d7c5400876991d347.tar.gz
prosody-aa34271523fce1875037d19d7c5400876991d347.zip
net.http.server: Fix default host logic
This was used to construct the event name previously
Diffstat (limited to 'net/http/server.lua')
-rw-r--r--net/http/server.lua2
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