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