intridea/omniauth — pull request #572 by behrangj (2012-02-02 00:24:35+00:00)
Title: handling HTTP_X_FORWARDED_PROTO header

In many installations, https transport is handled by the nginx layer and HTTP_X_FORWARDED_PROTO header is set to specify that the original request was https. This change will handle that situation.

We are using this change in production for more than 5 months now.

Thanks a lot