Skip to content

Commit

Permalink
Fix infinite loop in etag handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed May 9, 2024
1 parent d322476 commit 7215ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/asciinema_web/caching.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7215ca6

Please sign in to comment.