Skip to content
Snippets Groups Projects
Commit e477608b authored by lain's avatar lain
Browse files

add correct content type for catch-all

parent 563381d0
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment