diff --git a/lib/nitroux/plug.ex b/lib/nitroux/plug.ex index 858491c..3189344 100644 --- a/lib/nitroux/plug.ex +++ b/lib/nitroux/plug.ex @@ -12,7 +12,8 @@ defmodule Nitroux.Plug do _ -> data end - %{conn | resp_headers: [{"content-type", "text/html"}]} + conn + |> put_resp_header("content-type", "text/html") |> resp(conn.status || 200, data) end end diff --git a/mix.exs b/mix.exs index 24457c6..346353b 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Nitroux.MixProject do def project do [ app: :nitroux, - version: "0.4.3", + version: "0.4.4", elixir: "~> 1.13", name: "nitroux", description: description(),