Skip to content

Commit

Permalink
Fix inclusion of additional <meta> tags on recording page
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Jul 26, 2023
1 parent 803f2dd commit 1461d26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/asciinema_web/views/recording_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,6 @@ defmodule AsciinemaWeb.RecordingView do

defp rows(asciicast), do: asciicast.rows_override || asciicast.rows

def meta(:show, assigns), do: render("meta.show.html", assigns)
def meta("show.html", assigns), do: render("meta.show.html", assigns)
def meta(_, _), do: nil
end
2 changes: 2 additions & 0 deletions test/controllers/recording_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ defmodule Asciinema.RecordingControllerTest do

conn_2 = get(conn, url)
assert html_response(conn_2, 200) =~ "Good stuff"
assert html_response(conn_2, 200) =~ "application/json+oembed"
assert html_response(conn_2, 200) =~ "application/x-asciicast"
assert response_content_type(conn_2, :html)

conn_2 = conn |> put_req_header("accept", "*/*") |> get(url)
Expand Down

0 comments on commit 1461d26

Please sign in to comment.