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

View file

@ -107,5 +107,11 @@ def user_fetcher(username) do
defmodule Fallback.RedirectController do
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