intridea/omniauth — pull request #647 by daniel-nelson (2012-10-29 19:07:18+00:00)
Title: Rely on Rack::Request#ssl? rather than reproducing its logic

Rack::Request#ssl? checks HTTP_X_FORWARDED_PROTO. Use that method instead of reproducing it's logic so that ssl determination is centralized.