Integrated request format test for redirects to avoid body responses

We often received plain responses when user hit a controller from the outside of turbo links in the format Turbolinks.visit(...). In order to avoid that we checked your code and found that the easiest solution would be to check for the request content type.

Maybe you can use this adjustment.