# HG changeset patch # User Kim Alvefur # Date 1537558421 -7200 # Node ID 5d6b252bc36ff7df45799d4f60a9ff582e88c242 # Parent 9e8d7d461c7d176cd2629defc7c3612a1e79e4ad net.http.server: Fix default host logic This was used to construct the event name previously diff -r 9e8d7d461c7d -r 5d6b252bc36f net/http/server.lua --- a/net/http/server.lua Fri Sep 21 21:19:44 2018 +0200 +++ b/net/http/server.lua Fri Sep 21 21:33:41 2018 +0200 @@ -219,7 +219,7 @@ 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