mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
switch to JSON.dump to avoid infinite recursion
This commit is contained in:
parent
7f41321cbd
commit
82328a563f
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class TestCaseTest < ActionController::TestCase
|
|||
end
|
||||
|
||||
def test_headers
|
||||
render plain: request.headers.env.to_json
|
||||
render plain: ::JSON.dump(request.headers.env)
|
||||
end
|
||||
|
||||
def test_html_output
|
||||
|
|
Loading…
Reference in a new issue