diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-08-22 14:22:36 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-08-22 14:22:36 +0200 |
commit | e477608b7e87cc9adfaab8d91fb614ce1c0b8505 (patch) | |
tree | a195c7da50426682f4d92a716399e20329ae6cc7 /lib | |
parent | 563381d0d4b200587765f969c1c2dbf4b09e7d78 (diff) | |
download | pleroma-e477608b7e87cc9adfaab8d91fb614ce1c0b8505.tar.gz |
add correct content type for catch-all
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/router.ex | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 34207a62f..d42981ee0 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -107,5 +107,11 @@ end 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 |