Skip to content

Commit

Permalink
Fix 403 response for js, png and gif requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed May 19, 2024
1 parent 8202153 commit e408487
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/asciinema_web/controllers/fallback_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ defmodule AsciinemaWeb.FallbackController do
html: AsciinemaWeb.ErrorHTML,
json: AsciinemaWeb.ErrorJSON,
cast: AsciinemaWeb.ErrorJSON,
js: AsciinemaWeb.ErrorTEXT,
txt: AsciinemaWeb.ErrorTEXT,
svg: AsciinemaWeb.ErrorTEXT,
png: AsciinemaWeb.ErrorTEXT,
gif: AsciinemaWeb.ErrorTEXT,
xml: AsciinemaWeb.ErrorTEXT
)
|> render(:"#{status}")
Expand Down

0 comments on commit e408487

Please sign in to comment.