From cafba455cde9d9516ec8d14ea107bc8aac8bd300 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sat, 6 Nov 2021 08:09:24 -0400 Subject: [PATCH] Don't halt idempotent requests --- lib/philomena_web/plugs/filter_banned_users_plug.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/philomena_web/plugs/filter_banned_users_plug.ex b/lib/philomena_web/plugs/filter_banned_users_plug.ex index 4e9a8242..5b5c440d 100644 --- a/lib/philomena_web/plugs/filter_banned_users_plug.ex +++ b/lib/philomena_web/plugs/filter_banned_users_plug.ex @@ -34,6 +34,7 @@ defmodule PhilomenaWeb.FilterBannedUsersPlug do end 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 conn = Conn.fetch_cookies(conn)