Skip to content

Commit

Permalink
Render empty-ish 200 instead of 204 no content (forem#21574)
Browse files Browse the repository at this point in the history
  • Loading branch information
benhalpern authored Jan 31, 2025
1 parent 610e281 commit 7b8d762
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/auth_pass_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def iframe
@token = generate_auth_token(user)
else
session.delete(:user_id)
head :no_content
render html: "<html><body></body></html>".html_safe, status: :ok, layout: false
return
end
else
Expand All @@ -34,11 +34,11 @@ def iframe
session[:user_id] = user.id
@token = generate_auth_token(user)
else
head :no_content
render html: "<html><body></body></html>".html_safe, status: :ok, layout: false
return
end
else
head :no_content
render html: "<html><body></body></html>".html_safe, status: :ok, layout: false
return
end
end
Expand Down

0 comments on commit 7b8d762

Please sign in to comment.