probably best to just not match the not-present case
This commit is contained in:
parent
c50afa78d2
commit
26cb389528
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue