rails/rails — pull request #9063 by acapilleri (2013-01-24 21:10:09+00:00)
Title: if force_ssl filters a non html request, the url of redirection loses

the format.

It happens because the format is not added to redirect_options.
This PR tests if the request is not a html request and than
looks up the format inside Mime::Type.
fixes #9061