]> cat aescling's git repositories - mastodon.git/commit
Ignore implied formats for catch all route requests (#1340)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Sun, 9 Apr 2017 12:39:41 +0000 (08:39 -0400)
committerEugen <eugen@zeonfederated.com>
Sun, 9 Apr 2017 12:39:41 +0000 (14:39 +0200)
commit71706f21c28f5ae623ee69810fe26a34fb79b446
tree029ac8a62f15cbd28daa38e5711b46da094306e2
parentb1881a3d481bccfba984d42380ab2f3780bd0845
Ignore implied formats for catch all route requests (#1340)

A request to `/test` would show the custom 404 page, but a request to
`/test.test` would return a 404 with an empty body.

This change ignores the format on incoming catch all route requests, so that the
html 404 page is returned on these requests.
config/routes.rb
spec/requests/catch_all_route_request_spec.rb [new file with mode: 0644]