There are cases where it'd be nice to be able to set the protocol (for
ssl) easily, when you don't have access to the X-FORWARDED-PROTO
header, such as in Jamis' post http://weblog.jamisbuck.org/2006/10/3/mongrel-ssl-and-apache-1-3
. The current behavior also means ssl_requirement chokes under Apache
I wrote about it a little more, along with my simple work-around of
overloading request.ssl? in a before_filter:
But, I was thinking it might be nice if redirect_to(string) honored
default_url_options[:protocol], so that it could be handled
consistently in configuration, rather than having to muck with
protected methods of the request.
Would there be any interest if I submitted a small patch?