using webrat, my app pages, such as /register, which redirect to https (if the incoming request is http) throw webrat into a loop:
/Library/Ruby/Gems/1.8/gems/webrat-0.3.2/lib/webrat/merb.rb:17:in `get' /Library/Ruby/Gems/1.8/gems/webrat-0.3.2/lib/webrat/merb.rb:50:in `follow_redirect' /Library/Ruby/Gems/1.8/gems/webrat-0.3.2/lib/webrat/merb.rb:45:in `do_request' /Library/Ruby/Gems/1.8/gems/webrat-0.3.2/lib/webrat/merb.rb:17:in `get' /Library/Ruby/Gems/1.8/gems/webrat-0.3.2/lib/webrat/merb.rb:50:in `follow_redirect' /Library/Ruby/Gems/1.8/gems/webrat-0.3.2/lib/webrat/merb.rb:45:in `do_request' /Library/Ruby/Gems/1.8/gems/webrat-0.3.2/lib/webrat/merb.rb:17:in `get' ..... In /Library/Ruby/Gems/1.8/gems/webrat-0.3.2/lib/webrat/merb.rb:50:in `follow_redirect' I add the console output line: puts "REDIRECT => #[email protected]}" and I get: REDIRECT => {"Location"=>"https://example.org/register", "Content- Type"=>"text/html; charset=utf-8"} Looks ok to me. Does anyone know what's happening? I have nginx handling the SSL work and all works fine when I manually test. Am I wrong in assuming webrat is going through nginx to make the request? If it wasn't I would expect mongrel to crash as it does when you attempt an https call to it directly. Also, is there a config option to have the domain be something other than example.org? thanks, Jon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
