add correct content type for catch-all
This commit is contained in:
parent
563381d0d4
commit
e477608b7e
|
@ -107,5 +107,11 @@ def user_fetcher(username) do
|
||||||
|
|
||||||
defmodule Fallback.RedirectController do
|
defmodule Fallback.RedirectController do
|
||||||
use Pleroma.Web, :controller
|
use Pleroma.Web, :controller
|
||||||
def redirector(conn, _params), do: (if Mix.env != :test, do: send_file(conn, 200, "priv/static/index.html"))
|
def redirector(conn, _params) do
|
||||||
|
if Mix.env != :test do
|
||||||
|
conn
|
||||||
|
|> put_resp_content_type("text/html")
|
||||||
|
|> send_file(200, "priv/static/index.html")
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue