aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorYuji Yaginuma <yuuji.yaginuma@gmail.com>2019-06-21 09:04:30 +0900
committerGitHub <noreply@github.com>2019-06-21 09:04:30 +0900
commitc631e8d011a7cf3e7ade4e9e8db56d2b89bd530c (patch)
treece404d935851ec89e426e7538067276cc5a7e885 /guides
parent3218459c28737071fe4424cd375c1b06a5c317df (diff)
parentddb6d788d6a611fd1ba6cf92ad6d1342079517a8 (diff)
downloadrails-c631e8d011a7cf3e7ade4e9e8db56d2b89bd530c.tar.gz
rails-c631e8d011a7cf3e7ade4e9e8db56d2b89bd530c.tar.bz2
rails-c631e8d011a7cf3e7ade4e9e8db56d2b89bd530c.zip
Merge pull request #36490 from y-yagi/revise_36034
Make `ActionDispatch::Response#content_type` behavior configurable
Diffstat (limited to 'guides')
-rw-r--r--guides/source/configuring.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index b0bfe72741..ffff9417b9 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -553,6 +553,10 @@ Defaults to `'signed cookie'`.
Any exceptions that are not configured will be mapped to 500 Internal Server Error.
+* `config.action_dispatch.return_only_media_type_on_content_type` change the
+ return value of `ActionDispatch::Response#content_type` to the Content-Type
+ header without modification. Defaults to `false`.
+
* `ActionDispatch::Callbacks.before` takes a block of code to run before the request.
* `ActionDispatch::Callbacks.after` takes a block of code to run after the request.
@@ -908,6 +912,7 @@ text/javascript image/svg+xml application/postscript application/x-shockwave-fla
- `config.autoloader`: `:zeitwerk`
- `config.action_view.default_enforce_utf8`: `false`
- `config.action_dispatch.use_cookies_with_metadata`: `true`
+- `config.action_dispatch.return_only_media_type_on_content_type`: `false`
- `config.action_mailer.delivery_job`: `"ActionMailer::MailDeliveryJob"`
- `config.active_job.return_false_on_aborted_enqueue`: `true`
- `config.active_storage.queues.analysis`: `:active_storage_analysis`