probably best to just not match the not-present case

This commit is contained in:
FloatingGhost 2026-05-02 18:55:34 +01:00
commit 26cb389528

View file

@ -47,7 +47,7 @@ defmodule Pleroma.Web.Plugs.EnsureHostPlug do
end
end
defp handle_host_header(nil, conn) do
defp handle_host_header(_, conn) do
conn
|> put_status(:bad_request)
|> text("Host header not present")