From 7215ca689f6c5d8d1207e13f0e7b54a6314281f6 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Thu, 9 May 2024 22:05:11 +0200 Subject: [PATCH] Fix infinite loop in etag handling --- lib/asciinema_web/caching.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/asciinema_web/caching.ex b/lib/asciinema_web/caching.ex index 978b188d3..cbf113a24 100644 --- a/lib/asciinema_web/caching.ex +++ b/lib/asciinema_web/caching.ex @@ -8,7 +8,7 @@ defmodule AsciinemaWeb.Caching do |> put_resp_header("etag", etag) |> register_before_send(fn conn -> if etag in get_req_header(conn, "if-none-match") do - send_resp(conn, 304, "") + resp(conn, 304, "") else conn end