Skip to content

Commit

Permalink
Merge pull request #12 from totaltrash/develop
Browse files Browse the repository at this point in the history
Ensure response is sent when assets version is invalid
  • Loading branch information
tmartin8080 authored Feb 18, 2020
2 parents f0e6770 + ca50565 commit 8095d81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/inertia_phoenix/plug.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ defmodule InertiaPhoenix.Plug do
|> put_resp_header("x-inertia", "true")
|> put_resp_header("x-inertia-location", request_url(conn))
|> put_resp_content_type("text/html")
|> put_status(:conflict)
|> send_resp(:conflict, "")
|> halt()
end

Expand Down
1 change: 0 additions & 1 deletion test/inertia_phoenix/controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ defmodule InertiaPhoenix.ControllerTest do
|> fetch_session
|> fetch_flash
|> InertiaPhoenix.Plug.call([])
|> InertiaPhoenix.Controller.render_inertia("Home", props: %{hello: "world"})

assert html = html_response(conn, 409)
end
Expand Down

0 comments on commit 8095d81

Please sign in to comment.