Diego81/omnicontacts — pull request #5 by NadaAldahleh (2012-05-02 15:57:03+00:00)
Title: Update lib/omnicontacts/http_utils.rb

Sometimes HTTP headers other than env["rack.url_scheme"] are used to specify an HTTPS scheme (for example when nginx is used)

I added checks for the other headers similar to rack's code: https://github.com/rack/rack/blob/master/lib/rack/request.rb#L70