Don't halt idempotent requests

This commit is contained in:
byte[] 2021-11-06 08:09:24 -04:00
parent 2f4383eef7
commit cafba455cd

View file

@ -34,6 +34,7 @@ defmodule PhilomenaWeb.FilterBannedUsersPlug do
end end
defp maybe_halt_no_fingerprint(%{halted: true} = conn), do: conn defp maybe_halt_no_fingerprint(%{halted: true} = conn), do: conn
defp maybe_halt_no_fingerprint(%{method: "GET"} = conn), do: conn
defp maybe_halt_no_fingerprint(conn) do defp maybe_halt_no_fingerprint(conn) do
conn = Conn.fetch_cookies(conn) conn = Conn.fetch_cookies(conn)