On 11/9/07, Nick Zadrozny <[EMAIL PROTECTED]> wrote:
>
> I've tried request.env["HTTPS"] = "off" and request.env.delete("HTTPS")
> both seemingly to no avail. Tips?
>

Nevermind, figured it out. Because the #ssl? method checks @env['HTTPS'] and
@env['HTTP_X_FORWARDED_PROTO'] all I needed to do was delete both.

162:     def ssl?
163:       @env['HTTPS'] == 'on' || @env['HTTP_X_FORWARDED_PROTO'] == 'https'
164:     end


-- 
Nick Zadrozny • beyondthepath.com

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to