1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
Prem Sichanugrist ed88a601f7
Do note remove Content-Type when render :body
`render :body` should just not set the `Content-Type` header. By
removing the header, it breaks the compatibility with other parts.

After this commit, `render :body` will returns `text/html` content type,
sets by default from `ActionDispatch::Response`, and it will preserve
the overridden content type if you override it.

Fixes #14197, #14238

This partially reverts commit 3047376870.
2014-03-05 10:33:52 -05:00
..
abstract Action Pack Variants 2013-12-04 00:13:16 +01:00
assertions Change all MiniTest to Minitest since, MiniTest namespace has been renamed to Minitest 2013-12-18 14:39:50 +05:30
controller Do note remove Content-Type when render :body 2014-03-05 10:33:52 -05:00
dispatch Do note remove Content-Type when render :body 2014-03-05 10:33:52 -05:00
fixtures Merge pull request #13470 from strzalek/variants-all-any 2013-12-31 09:57:09 -08:00
journey Eliminate JSON.{parse,load,generate,dump} and def to_json 2013-11-05 22:26:45 -08:00
lib/controller Eliminate JSON.{parse,load,generate,dump} and def to_json 2013-11-05 22:26:45 -08:00
routing Fix failing test missed for the past year :( 2013-07-17 08:56:34 +01:00
tmp Use safe tmp dir 2009-08-13 21:03:25 -05:00
abstract_unit.rb standardize on jruby_skip & rbx_skip 2014-01-13 19:51:47 +05:30