add correct content type for catch-all

This commit is contained in:
Roger Braun 2017-08-22 14:22:36 +02:00
parent 563381d0d4
commit e477608b7e
1 changed files with 7 additions and 1 deletions

View File

@ -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