aboutsummaryrefslogtreecommitdiffstats
path: root/net/http/server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/server.lua')
-rw-r--r--net/http/server.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index 325eb42f..eb30da78 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -178,8 +178,7 @@ function handle_request(conn, request, finish_cb)
err_code, err = 400, "Missing or invalid 'Host' header";
elseif not request.path then
err_code, err = 400, "Invalid path";
- end
- if not hosts[host] then
+ elseif not hosts[host] then
if hosts[default_host] then
host = default_host;
else