aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/journey
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-11-22 22:22:34 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2016-11-23 22:02:19 +0100
commit86754a8f7b4986323aae3be172330fbc228c27ab (patch)
treedcfaf38a44dace30b40ce9a597eed3cc2c9d4937 /actionpack/lib/action_dispatch/journey
parent49aa974ec8b15721d53b3b6abea88bd6ba433a68 (diff)
downloadrails-86754a8f7b4986323aae3be172330fbc228c27ab.tar.gz
rails-86754a8f7b4986323aae3be172330fbc228c27ab.tar.bz2
rails-86754a8f7b4986323aae3be172330fbc228c27ab.zip
Use accept header instead of mangling request path.
Instead of appending a format to the request, it's much better to just pass a more appropriate accept header. Rails will figure out the format from that instead. This allows devs to use `:as` on routes that don't have a format. Introduce an `IdentityEncoder` to avoid `if request_encoder`, essentially a better version of the purpose of the `WWWFormEncoder`. One that makes conceptual sense on GET requests too. Fixes #27144.
Diffstat (limited to 'actionpack/lib/action_dispatch/journey')
0 files changed, 0 insertions, 0 deletions