aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/new_base/render_plain_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Removed single space padding from empty response body.Godfrey Chan2014-07-101-4/+4
| | | | | | | | | | | | `render nothing: true` or rendering a `nil` body no longer add a single space to the response body. The old behavior was added as a workaround for a bug in an early version of Safari, where the HTTP headers are not returned correctly if the response body has a 0-length. This is been fixed since and the workaround is no longer necessary. Use `render body: ' '` if the old behavior is desired.
* Introduce `render :plain` for render plain textPrem Sichanugrist2014-02-181-0/+168
This is as an option to render content with a content type of `text/plain`. This is the preferred option if you are planning to render a plain text content. Please see #12374 for more detail.